::-moz-selection {
    background: #00a8ec;
    color: #ffffff;
    text-shadow: none;
}

::selection {
    background: #00a8ec;
    color: #ffffff;
    text-shadow: none;
}


body {
    padding: 0 !important;
}

.logo a {
    width: 250px;
    height: 50px;
    margin-top: 0;
    background-image: url('../img/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}

/* Book a Demo Button */
.book-demo-btn {
    background-color: #29abe2 !important;
    color: #fff !important;
    padding: 10px 30px !important;
    border-radius: 5px;
    text-decoration: none !important;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-left: 20px;
    display: inline-block;
    white-space: nowrap;
    min-width: 140px;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.4;
}

.book-demo-btn:hover {
    background-color: #1a8fc2 !important;
    color: #fff !important;
}

/* Center nav tabs */
.alterna-nav-menu {
    text-align: center;
}

.alterna-nav-menu>li {
    float: none;
    display: inline-block;
}

/* Responsive adjustments for Book a Demo button */
@media (max-width: 979px) {
    .book-demo-btn {
        padding: 8px 20px !important;
        min-width: 120px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .book-demo-btn {
        padding: 8px 16px !important;
        min-width: 100px;
        margin-left: 10px;
    }

    .logo a {
        width: 180px;
        height: 40px;
        background-size: contain;
        background-position: center;
        margin: 0 auto;
    }
}

.fixed-logo a {
    width: 44px;
    height: 44px;
    background-image: url('../img/fixed-logo.png');
    background-size: 44px 44px;
}

.header-social-container {
    margin-top: 14px;
    margin-right: 0px;
}

header.header-fixed .header-style-4 .alterna-header-right-container {
    margin-top: 0px;
}

.header-style-2 .alterna-header-right-container,
.header-style-5 .alterna-header-right-container {
    margin-top: 0px;
}

.content-wrap {
    background-color: #ffffff;
}


#alterna-header {
    background-size: 0px 0px;
    background-repeat: repeat;
    background-image: url();
}

/* page title background */
#page-header {
    background-size: 297px 297px;
    background-repeat: repeat;
    background-image: url('../img/bright_squares1.png');
}




@media only screen and (-Webkit-min-device-pixel-ratio: 1.5),
only screen and (-moz-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (min-device-pixel-ratio: 1.5) {
    .logo a {
        background-image: url('../img/logo.png');
        background-size: contain;
    }

    .fixed-logo a {
        background-image: url('../img/fixed-logo@2x.png');
    }

    #page-header {
        background-image: url('../img/bright_squares@2x1.png');
    }


}

/* --- Navbar Fixes --- */

/* 1. Reduce Navbar Height */
#alterna-header.header-style-4 {
    min-height: 80px !important;
    /* Reduced from 106px */
}

/* 2. Resize Logo */
.logo a {
    width: 180px !important;
    /* Reduced from 250px */
    height: 40px !important;
    /* Reduced from 50px */
    background-size: contain;
}

/* Center logo vertically: (80px header - 40px logo) / 2 = 20px */
.header-style-4 .logo {
    margin-top: 20px !important;
    /* Override style.css 23px */
}

/* 3. Fix Menu Item Alignment & Layout Shift (FLEXBOX REFACTOR) */
.header-style-4 .alterna-nav-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    /* Align to right */
    height: 80px !important;
    margin: 0 !important;
}

.header-style-4 .alterna-nav-menu>li {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    /* Full height for hover borders */
    float: none !important;
    position: relative !important;
    /* For dropdowns */
}

.header-style-4 .alterna-nav-menu>li>a {
    font-size: 14px !important;
    font-weight: normal !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    /* Full height for border placement */
    padding: 0 15px !important;
    /* Add slight top padding to visually center all-caps text against button */
    padding-top: 2px !important;
    line-height: 1 !important;
    border-bottom: 2px solid transparent;
}

/* Ensure hover state doesn't change padding */
.header-style-4 .alterna-nav-menu>li:hover>a,
.header-style-4 .alterna-nav-menu>li.current-menu-item>a,
.header-style-4 .alterna-nav-menu>li.current-menu-ancestor>a {
    border-bottom: 2px solid #00a8ec;
}

/* 4. Fix "Book a Demo" Button Alignment */
/* (Handled by Flexbox above) */

/* Adjust Book a Demo button specific styling */
.book-demo-btn {
    margin-top: 0 !important;
}

/* 5. Fix Dropdown Menu Gap */
.header-style-4 .alterna-nav-menu .sub-menu {
    margin-top: 0 !important;
    /* Flex container handles height, reset margin if needed */
    top: 100% !important;
    /* Position right below the li */
}

/* 6. Fix Icon Conflicts (Bootstrap vs FontAwesome) */
[class^="icon-"],
[class*=" icon-"] {
    background-image: none !important;
}

/* 7. Resize Book a Demo Button */
html body #alterna-header .alterna-nav-menu>li>a.book-demo-btn {
    height: 40px !important;
    /* Explicit 40px height */
    line-height: 1 !important;
    /* Match text links line-height */
    padding: 0 15px !important;
    margin-left: 30px !important;
    /* Add space between Events and Button */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    display: flex !important;
    /* Flex to center text inside button */
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    background-color: #29abe2 !important;
    color: #fff !important;
    border-radius: 5px !important;
    border: none !important;
    width: auto !important;
    min-width: 100px !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    font-weight: bold !important;
}

/* Hover state for the specific button */
html body #alterna-header .alterna-nav-menu>li>a.book-demo-btn:hover {
    background-color: #1a8fc2 !important;
    color: #fff !important;
    border-bottom: none !important;
}

/* Prevent theme border */


/* 8. Fix Footer Events Alignment */
.widget_archive ul li {
    text-align: left !important;
}

/* Align text in footer events (hanging indent for icon) */
.widget_archive ul li a {
    position: relative !important;
    float: none !important;
    /* Override float: left from style.css */
    width: auto !important;
    /* Override width: 97% from style.css */
    padding-left: 40px !important;
    /* Increased space for icon + spacing */
    padding-right: 100px !important;
    /* Space for the Booth label */
    display: block !important;
    /* Ensure block formatting */
    box-sizing: border-box !important;
    /* Ensure padding is included in width */
}

.widget_archive ul li a:before {
    position: absolute !important;
    left: 10px !important;
    /* Spacing from left */
    top: 50% !important;
    /* Vertical center */
    transform: translateY(-50%) !important;
    /* Vertical center */
    margin-right: 0 !important;
    margin-top: 0 !important;
}

/* Fix Booth Label Overflow */
.label-booth {
    float: none !important;
    position: absolute !important;
    right: 10px !important;
    /* 10px from right edge */
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 80px !important;
    z-index: 10 !important;
    /* Ensure it's on top */
}

/* 9. Resize Live Casino Virginia Image */
img[src="img/Live_Virginia.jpg"] {
    width: 80% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* 10. Style Sales Email Link */
a[href^="mailto:sales@adeptusa.com"] {
    color: #29abe2 !important;
    /* Light blue */
    text-decoration: none !important;
    transition: color 0.3s ease;
}

a[href^="mailto:sales@adeptusa.com"]:hover {
    color: #005f87 !important;
    /* Darker blue */
}