/*
 * HCTV Custom Header Styles
 * Version: 1.0.0
 * 
 * This file controls the styling of the HCTV custom header.
 * Edit this file to customize the appearance of your header.
 */

/* ===========================================
   BRAND COLORS - Edit these to change colors
   =========================================== */
:root {
    --hctv-blue: #224191;
    --hctv-red: #E12E29;
    --hctv-red-dark: #cb2925;
    --hctv-white: #ffffff;
    --hctv-light-gray: #f5f5f5;
}

/* ===========================================
   DESKTOP HEADER STYLES
   =========================================== */
.hctv-header-8 {
    font-family: 'Roboto', sans-serif;
    position: relative;
    z-index: 9999;
}

.hctv-h8-top {
    display: flex;
    position: relative;
    height: 125px;
}

.hctv-h8-logo-area {
    background: var(--hctv-white);
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    padding-left: 30px;
}

.hctv-h8-logo {
    display: flex;
    align-items: center;
}

.hctv-h8-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.hctv-h8-logo-img {
    height: 94px;
    width: auto;
    shape-rendering: geometricPrecision;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

/* Diagonal Split */
.hctv-h8-diagonal {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 100px;
    background: linear-gradient(110deg, var(--hctv-white) 49.5%, var(--hctv-blue) 50.5%);
    z-index: 1;
}

.hctv-h8-ad-area
 {
    outline: 5px solid #224191;
    outline-offset: -2px;
    overflow: hidden;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    top: 11px;
    zoom: 0.9;
    border-radius: 5px;
}
.hctv-h8-ad-area img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Utility Area (Right Side - Blue) */
.hctv-h8-utility-area {
    background: var(--hctv-blue);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 30px;
    gap: 30px;
}

.hctv-h8-utility-links {
    display: flex;
    gap: 25px;
}

.hctv-h8-utility-links a {    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 1.1em !important;
    transition: color 0.3s;
}

.hctv-h8-utility-links a:hover {
    color: var(--hctv-white);
}

/* Social Icons */
.hctv-h8-social {
    display: flex;
    gap: 15px;
}

.hctv-h8-social a {
    color: rgba(255,255,255,0.85);
    font-size: 1em;
    transition: color 0.3s;
    text-decoration: none !important;
}

.hctv-h8-social a:hover {
    color: var(--hctv-red) !important;
    text-decoration: none !important;
}

/* Main Navigation Bar */
.hctv-h8-nav {
    background: var(--hctv-red);
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 3px solid var(--hctv-blue);
}

.hctv-h8-nav-inner {
    display: flex;
}

.hctv-h8-nav-inner a {
    color: var(--hctv-white) !important;
    text-decoration: none !important;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    transition: background 0.3s;
    display: block;
    text-transform: uppercase;
}

.hctv-h8-nav-inner a:hover {
    background: rgba(0,0,0,0.1);
}

.hctv-h8-nav-inner a.active {
    background: var(--hctv-blue);
}

/* Nav Right (Search & Live) */
.hctv-h8-nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hctv-h8-search {
    display: flex;
}

.hctv-h8-search form {
    display: flex;
    margin: 0;
}

.hctv-h8-search input[type="text"] {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 8px 15px;
    color: var(--hctv-white);
    outline: none;
    width: 120px;
    font-size: 14px;
}

.hctv-h8-search input[type="text"]::placeholder {
    color: rgba(255,255,255,0.6);
}

.hctv-h8-search button {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 8px 12px;
    color: var(--hctv-white);
    cursor: pointer;
}

.hctv-h8-search button:hover {
    background: rgba(255,255,255,0.3);
}

/* LIVE Button */
.hctv-h8-live-btn {
    background: var(--hctv-blue);
    color: var(--hctv-white);
    text-decoration: none;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.85em;
    border-radius: 4px;
    display: none; /* Hidden by default, shown via JS when live */
    align-items: center;
    gap: 8px;
}

.hctv-h8-live-btn i {
    font-size: 0.6em;
    animation: hctv-pulse 1s infinite;
}

@keyframes hctv-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}


/* ===========================================
   MOBILE HEADER STYLES
   =========================================== */
.hctv-header-8-mobile {
    font-family: 'Roboto', sans-serif;
    display: none;
    position: relative;
    z-index: 9999;
}

/* Show mobile at 996px */
@media (max-width: 996px) {
    .hctv-header-8-mobile {
        display: block;
    }
}

/* Mobile Ad Bar */
.hctv-h8m-ad-bar {
    background: var(--hctv-light-gray);
    padding: 8px;
    text-align: center;
}

.hctv-h8m-ad-bar a {
    display: inline-block;
}

.hctv-h8m-ad-bar img {
    max-width: 100%;
    height: 50px;
    object-fit: contain;
}

/* Mobile Top Bar */
.hctv-h8m-top {
    background: var(--hctv-white);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid var(--hctv-blue);
}

/* Hamburger Menu Button */
.hctv-h8m-menu-btn {
    background: var(--hctv-blue);
    color: var(--hctv-white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.hctv-h8m-menu-btn.active {
    background: var(--hctv-red);
}

/* Mobile Logo */
.hctv-h8m-logo {
    display: flex;
    align-items: center;
}

.hctv-h8m-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.hctv-h8m-logo-img {
    height: 40px;
    width: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Mobile LIVE Button */
.hctv-h8m-live-btn {
    background: var(--hctv-red);
    color: var(--hctv-white);
    text-decoration: none;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.75em;
    border-radius: 4px;
    display: none; /* Hidden by default, shown via JS when live */
    align-items: center;
    gap: 6px;
}

.hctv-h8m-live-btn i {
    font-size: 0.6em;
    animation: hctv-pulse 1s infinite;
}

/* Mobile Quick Nav */
.hctv-h8m-nav {
    background: var(--hctv-red);
    display: flex;
    justify-content: space-between;
    padding: 0 5px;
    overflow-x: auto;
}

.hctv-h8m-nav.hidden {
    display: none;
}

.hctv-h8m-nav a {
    color: var(--hctv-white);
    text-decoration: none;
    padding: 12px 10px;
    font-weight: 600;
    font-size: 0.75em;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: background 0.3s;
    flex: 1;
    text-align: center;
}

.hctv-h8m-nav a.active {
    background: var(--hctv-blue);
}

/* Mobile Menu Panel (Expanded) */
.hctv-h8m-menu-panel {
    display: none;
    background: var(--hctv-blue);
    padding: 20px;
}

.hctv-h8m-menu-panel.open {
    display: block;
}

/* Full Navigation in Panel */
.hctv-h8m-full-nav {
    display: flex;
    flex-direction: column;
}

.hctv-h8m-full-nav a {
    color: var(--hctv-white);
    text-decoration: none;
    padding: 14px 15px;
    font-weight: 600;
    font-size: 1em;
    border-radius: 6px;
    transition: background 0.3s;
    display: block;
}

.hctv-h8m-full-nav a:hover,
.hctv-h8m-full-nav a.active {
    background: var(--hctv-red);
}

/* Dividers */
.hctv-h8m-menu-divider {
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 15px 0;
}

/* Secondary Navigation */
.hctv-h8m-secondary-nav {
    display: flex;
    flex-direction: column;
}

.hctv-h8m-secondary-nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 12px 15px;
    font-size: 0.9em;
    transition: color 0.3s;
}

.hctv-h8m-secondary-nav a:hover {
    color: var(--hctv-white);
}

/* Mobile Search */
.hctv-h8m-search {
    display: flex;
    margin-top: 10px;
}

.hctv-h8m-search form {
    display: flex;
    width: 100%;
    margin: 0;
}

.hctv-h8m-search input[type="text"] {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 14px 15px;
    color: var(--hctv-white);
    outline: none;
    border-radius: 6px 0 0 6px;
    font-size: 1em;
}

.hctv-h8m-search input[type="text"]::placeholder {
    color: rgba(255,255,255,0.5);
}

.hctv-h8m-search button {
    background: var(--hctv-red);
    border: none;
    padding: 14px 18px;
    color: var(--hctv-white);
    cursor: pointer;
    border-radius: 0 6px 6px 0;
    font-size: 1em;
}

/* Mobile Social Icons */
.hctv-h8m-social {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    padding-top: 15px;
}

.hctv-h8m-social a {
    color: rgba(255,255,255,0.8);
    font-size: 1.3em;
    transition: color 0.3s;
    text-decoration: none;
}

.hctv-h8m-social a:hover {
    color: var(--hctv-red);
}
/* Hide desktop at 996px */
@media (max-width: 996px) {
    .hctv-header-8 {
        display: none;
    }
}
@media (max-width: 1020px) {
    .hctv-h8-live-btn {
        display: none !important;
    }
}

@media (max-width: 1575px) {
    .hctv-h8-ad-area {
        left: 44%;
    }
}

@media (max-width: 1400px) {
    .hctv-h8-ad-area {
        zoom: 0.8;
        top: 22px;
       left: 43%;
    }
}

@media (max-width: 1250px) {
    .hctv-h8-ad-area {
        zoom: 0.7;
        top: 30px;
    }
}

@media (max-width: 1200px) {
    .hctv-h8-ad-area {
        zoom: 0.62;
        top: 40px;
        left: 44.5%;
    }
}

@media (max-width: 1155px) {
    .hctv-h8-utility-links {
    display: flex;
    gap: 18px;
    max-width: 246px;
}
}

@media (max-width: 1055px) {
    .hctv-h8-ad-area {
        zoom: 0.52;
        top: 62px;
        left: 44.5%;
    }
}

.g {
    margin: auto !important;
}