/*
Theme Name: Mpho
Theme URI: https://wordpress.com/themes/mpho/
Description: Mpho is a minimalist single column theme that draws inspiration from short-sized posts and social networks. It prioritizes the post content and author, featuring a header with the author's bio and profile picture. With its simplicity, Mpho offers four style variations to suit different preferences.
Version: 1.0.6
Author: Automattic
Author URI: https://automattic.com/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mpho
*/

/*
 * Control the hover stylings of outline block style.
 * Unnecessary once block styles are configurable via theme.json
 * https://github.com/WordPress/gutenberg/issues/42794
 */
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--secondary);
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: .0625em !important;
	text-underline-offset: .15em;
}

.epg-table {
    width: 100%;
}

.epg-table thead {
	font-size: 12px;
	text-transform: uppercase;
	text-align: left;
}

.epg-table th {
	width: 25%;
	padding: 0 5px;
}

.epg-table td {
	padding: 5px;
	height: 80px;
}

.epg-table .epg-channel-col {
    background: #3b3b3b;
}

.epg-table .guide-title {
    background: #2b2b2b;
}

.epg-channel-col * {
    margin: 5px auto;
    display: block;
    text-align: center;
}

.epg-title {
	color: #f5f5f5;
	font-size: 14px;
	margin-bottom: 10px;
	font-weight: 700;
}

.epg-time {
	font-size: 12px;
}

.sat-chart {
	direction: ltr;
}

.sat-table-heading th {
	font-size: 10px; 
	text-transform: uppercase;
	text-align: left; 
	background: #282828; 
	padding: 2px 5px;
    
}

.sat-table-heading tr {
	border-left: 3px solid #282828;
}

.sat-table tbody tr {
    border-bottom: 1px dotted #3c3c3c;
}

.sat-table tbody tr:hover {
    background: #2d2d2d;
}

.sat-table tbody td {
	padding: 5px;
}

.quality-icon {
	font-size: 1.54em;
}
.color-hd {
	color: #eeeeee!important;
}


.color-4k {
	color: #ddce00!important;
}

.color-8k {
	color: #fcb900!important;
}
.aud-details {
    display: flex;
    flex-direction: column;
}

.aud-trk {
    display: flex !important;
    gap: 2px;
    justify-content: end;
}

.mobile-only{
    display: none;
}
.sound-tag {
    border-radius: 3px;
    background: #325867;
    padding: 1px 2px;
    font-size: .75em;
    font-weight: 600;
    color: #c9c9c9;
}


.search-bar {
	width: calc(100% - 16px);
    padding: 8px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid #4b4b4b;
    background: #1e1e1e;
    color: #b7b7b7;
}

.search-bar:focus {
    outline: none;
}

.footer-social-icon
 {
	display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #414141;
    border-radius: 100%;
    width: 30px;
    height: 30px;
    text-align: center;
    font-size: 15px;
	transition: all 0.3s ease;

}

.footer-social-icon.x:hover {
    background-color: #000000;
}

.footer-social-icon.tiktok:hover {
    background-color: #000000;
    /* Optional: TikTok's specific cyan/red glow look */
    box-shadow: 2px 2px #ff0050, -2px -2px #00f2ea;
}

.footer-social-icon.youtube:hover {
    background-color: #ff0000;
}

.footer-social-icon.bsky:hover {
    background-color: #0085ff;
}

.footer-social-icon.threads:hover {
    background-color: #000000;
}

.footer-social-icon.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.wp-block-post-author-biography {
    text-align: center;
    line-height: 2;
    direction: rtl;
}

.entry-content p {
    line-height: 2;
    font-weight: 300;
    font-size: 15px;
    color: #d3d3d3;
}

.wp-singular .wp-block-post-title {
    font-size: 1.6em;
}

.wp-block-post-title {
	font-size: 1.2em;
    line-height: 1.5;
}

.wp-block-post-author-name:after {
    content: '@';
}

.wp-block-post-terms {
    direction: rtl;
}


.custom-top-nav {
    background: #262626;
    border-bottom: 1px solid #403f3f;
    padding: 8px 15px;
    direction: rtl; 
    position: relative;
}

.top-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--wp--style--global--content-size);
    margin: 0 auto;
}

/* SEARCH SECTION (Left Side) */
.top-nav-left {
    display: flex;
    align-items: center;
}

.search-toggle-btn {
    display: none; 
    background: none;
    border: none;
    color: var(--wp--preset--color--contrast);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.top-nav-left .search-form {
    display: flex;
    align-items: center;
    background: #424242;
    padding: 2px 10px;
    border-radius: 20px;
}

.top-nav-left .search-field {
    border: none;
    background: transparent;
    padding: 0 5px;
    font-size: 12px;
    outline: none;
    height: 23px;
    color: #FFF;
	font-family: inherit;
	line-height: 2;
}
.search-submit {
    visibility: hidden;
}

/* NAV LINKS (Right Side) */
.top-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
}

.top-nav-right .nav-link {
    text-decoration: none;
    color: var(--wp--preset--color--contrast);
    white-space: nowrap;
}

.wp-block-site-title {
    margin-bottom: -8px !important;
}

.two-cols-prof {
    display: flex; width: 100%; gap: 20px;
}

input {
    font-family: inherit;
}

.wp-block-post-featured-image {
    border-radius: 8px;
    overflow: hidden;
}

/* MOBILE RESPONSIVE LOGIC */
@media (max-width: 768px) {
    .header-logo-mena {
        height: 25px!important;
    }

    .two-cols-prof {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    div.nsl-container.nsl-container-block .nsl-container-buttons {
        flex-direction: column;
        gap: 0!important;
    }
    
    .nsl-button-label-container {
        font-size: .7em !important;
        margin: 0px !important;
    }

    .search-toggle-btn {
        display: block;
        font-size: 14px;
    }
    .custom-top-nav {
        padding: 2px 15px;
    }

    /* Hide the form box until clicked */
    .top-nav-left .search-form {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #333; /* Slightly lighter for contrast */
        border-bottom: 1px solid #403f3f;
        border-radius: 0;
        padding: 10px 15px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-5px);
        transition: all 0.2s ease-in-out;
        z-index: 999;
    }

    .top-nav-left .search-form.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .top-nav-left .search-field {
        width: 100%;
        font-size: 14px;
    }
		

    /* Ensure links stay right even when search is an icon */
    .top-nav-right {
        margin-right: 0;
        gap: 8px;
        font-size: 11px;
    }
    
    
    /***  ******************* Satellite Table ********************/
    .freq-block span {
        display: block;
    }


    .sat-table-heading {
        display: none;
    }

    .sat-table, .sat-table tbody, .sat-table tr, .sat-table td {
        display: block;
    }

    .sat-table tr {
        margin-bottom: 15px;
        border: 1px solid #3c3c3c;
        background: #1a1a1a;
    }

    .sat-table td {
        text-align: right;
        position: relative;
        border-bottom: 1px solid #282828;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
    }

    .sat-table td::before {
        content: attr(data-label);
        font-weight: bold;
        text-transform: uppercase;
        font-size: 10px;
        color: #888;
        margin-right: 15px;
    }

    .sat-table td.ch-name {
        background: #282828;
        font-size: 15px;
        font-weight: bold;
        color: #fff;
        display: block;
        text-align: left;
    }
    
    .sat-table td.ch-name::before {
        color: #d99f00;
    }

    .sat-table td.lock-cell, .sat-table td.qlty-cell {
        display: none;
    }
    .sat-table td.ch-name:before {
        display: none;
    }

    .mobile-only {
        float: right;
        font-size: 12px;
        display: flex!important;
        align-items: center;
        margin-top: -1px;
    }
    /************ EPG   *********/
    .epg-table td {
        height: auto;
    }
    
    .epg-table thead {
        display: none!important;
    }
    .epg-row {
        display: grid;
        grid-template-columns: auto 1fr;
        border-bottom: 2px solid #131415;
    }
    
    .epg-channel-col {
        grid-row: 1 / span 3;
    }
    
    td.guide-title {
        display: flex;
        padding: 5px 15px 5px 5px !important;
        height: 40px;
        flex-direction: column;
        justify-content: center;
        
    }
    
    td.epg-channel-col {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 80px;
    }
    
    .epg-title {
        font-size: .65em;
        margin-bottom: 3px !important;
        position: relative;
    }
    .guide-title:nth-child(2) { grid-row: 1; }
    .guide-title:nth-child(3) { grid-row: 2; border-top: 1px solid #3b3b3b; border-bottom: 1px solid #3b3b3b;}
    .guide-title:nth-child(4) { grid-row: 3; }
    
    .guide-title:nth-child(2):before { content : 'NOW'; }
    .guide-title:nth-child(3):before { content : 'NEXT'; }
    .guide-title:nth-child(4):before { content : 'LATER'; }
    .guide-title:before {
        font-size: 10px;
        font-weight: bold;
        text-align: center;
        position: absolute;
        transform: rotate(-90deg);
        margin-right: -35px;
        background: #181818;
        width: 50px;
        font-weight: bold;
        color: #3b3b3b;
        
    }
    
}
/* Modal Background */
.login-modal-overlay {
    display: none; /* Controlled by JS */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Class to trigger appearance */
.login-modal-overlay.active {
    display: flex; /* Changed from block to flex for centering */
    opacity: 1;
}

/* Modal Box */
.login-modal-content {
    background-color: #1a1a1a;
    border: 1px solid #333;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
    transform: scale(0.7);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-modal-overlay.active .login-modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    right: 20px; top: 10px;
    font-size: 28px;
    cursor: pointer;
}

#login-form label, .csp-profile-container label {
    color: #7d7d7d;
    font-size: 13px;
    text-align: right;
    width: 100%;
    display: block;
    margin-bottom: 5px;
}

.custom-social-buttons {
    margin-top: 15px;
}

.custom-social-buttons .nsl-container-buttons {
    width: 100%;
}
.nsl-button * {
    font-family: 'Alexandria' !important;
}
#nsl-notices-fallback > div.updated
 {
    display: block;
    background: #46b450;
    border: none;
    border-radius: 8px;
}

.custom-social-buttons .nsl-container .nsl-button {
	border-radius: 50px;
}

.social-login-separator {
    margin: 20px 0;
    border-bottom: 1px solid #373737;
    line-height: 0.1em;
}

.social-login-separator span {
    background: #1a1a1a;
    padding: 0 10px;
    color: #888;
	font-size: .6em;
}

#login-form br, .custom-top-nav br, .csp-profile-container br{
    display: none;
}
#login-form p, .custom-top-nav p {
	margin: 0px!important;
	padding:0px!important
}

.label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    width: 100%;
}

/* Ensure the label margin doesn't interfere with flex alignment */
.label-wrapper label {
    margin-bottom: 0 !important;
    width: auto !important;
}

.forgot-password-link {
    font-size: 12px;
    color: var(--wp--preset--color--secondary)!important;
    text-decoration: none;
    transition: opacity 0.2s;
}

.forgot-password-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.finish-text {
	color: #aaa;
}

.wp-block-query-pagination {
	opacity: 0!important;
}

.modal-logo {
    width: 35%;
    margin: 0 auto 20px;
    display: block;
    margin-top: -20px;
    opacity: .4;
}

.login-error {
    color: red;
    margin-top: 10px;
    font-size: .7em;
}

.form-group {
    margin-bottom: 15px;
}

textarea {
    color: rgb(255, 255, 255) !important;
    background: #222222;
    border: 1px solid #313030;
    border-radius: 20px;
    padding: 5px 20px;
    width: calc(100% - 40px)!important;
    display: block;
	font-family: var(--font-family--system-font);
	line-height: 2;
}

.input, input[type=text], input[type=email] {
    color: rgb(255, 255, 255) !important;
    background: #222222;
    border: 1px solid #313030;
    border-radius: 20px;
    padding: 5px 20px;
    height: 25px;
    width: calc(100% - 40px);
    display: block;
	font-family: inherit;
	line-height: 2;
}

.comment-form input[type=text], .comment-form input[type=email] {
	min-height: 40px;
}

*:focus, *:active {
	outline:none!important;
	box-shadow: none!important;
}


.button-primary, #submit{
    font-family: inherit;
    background: #ffd014;
    color: #000;
    border: none;
    padding: 10px 25px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    border-radius: 50px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button-primary:hover {
    background: #333;
    color: #ffd014;
}

.modal-footer-links a {
    font-size: 13px;
    text-decoration: none;
    color: #7d7d7d;
    transition: 0.3s ease, color 0.3s ease;
    margin: 0 10px;
}

.modal-footer-links a:hover {
    color: var(--wp--preset--color--secondary);
}

input[type=checkbox], input[type=radio] {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: #444 !important;
    border: 2px solid #555 !important;
    height: 20px !important;
    width: 20px !important;
    cursor: pointer;
    position: relative;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 4px;
}

/* IMPORTANT: Kill the default WordPress Dashicon Tick */
input[type=checkbox]:before, 
input[type=radio]:before {
    display: none !important; 
    content: none !important;
}

/* Our Custom Gold Tick (Poll Style) */
input[type=checkbox]:checked {
    background: #ffd014 !important;
    border-color: #ffd014 !important;
}

input[type=checkbox]:checked:after {
    content: "";
    position: absolute;
    display: block;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #000; /* Black tick on gold background */
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Custom Radio Dot */
input[type=radio] { border-radius: 50% !important; }
input[type=radio]:checked {
    background: #ffd014 !important;
    border-color: #ffd014 !important;
}
input[type=radio]:checked:after {
    content: "";
    position: absolute;
    display: block;
    left: 4px;
    top: 4px;
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
}

.login-remember * {
    vertical-align: middle;
}

.login-remember {
    display: table-cell;
}

.sat-table, .channel-search-box {
	direction:ltr;
}

li.wp-block-navigation-item:before {
    content: '\F2EF';
    font-family: "bootstrap-icons" !important;
    font-size: .55em;
    margin-left: 10px;
    color: #373737;
}

li.wp-block-navigation-item:nth-child(1):before {
    content: '';
}


.wp-block-navigation-item a span {
    transition: all .4s ease!important;
}

li.wp-block-navigation-item:hover a span{
	color: #ffd014;
}

.login-modal-content input {
	direction: ltr;
}

.header-logo-mena {
    height: 35px;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
	font-family: var(--font-family--system-font)
    box-sizing: border-box;
    height: 40px;
    padding: 0 40px 0 16px;
    border-radius: 10px;
    border: 1px solid #403f3f;
    background-color: #262626;
    color: #eee;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23eee' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
	line-height: 2;
}


.bi::before, [class*=" bi-"]::before, [class^=bi-]::before {
	vertical-align: middle!important;
}

.wp-block-post-terms a:where(:not(.wp-element-button)) {
    color: var(--wp--preset--color--secondary)!important;
    text-decoration: none!important;
	font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.294), 1rem);
} 
:root :where(.wp-block-navigation a:where(:not(.wp-element-button)):hover) {
    text-decoration: none;
}

#ctis-loading img, .spinner img {
    max-width: 300px!important;
}

.logged-in-as {
	display:none;
}

.wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]):not([type=hidden]), .wp-block-post-comments-form .comment-form textarea {
    box-sizing: border-box;
    display: block;
    width: 100% !important;
	height: 100px;
}

.wp-block-query-no-results {
    text-align: center;
    margin-top: 50px !important;
}

@media (max-width: 480px) {
    .login-modal-content {
        padding: 20px;
        width: calc(100% - 40px);
        height: calc(100% - 40px);
        position: fixed;
        border-radius: 0;
        border: none;
    }
    img.modal-logo {
        margin: 10% auto;
    }
}


	.search-field::placeholder {
		line-height: 2!important;
		font-size: 12px!important;
		padding: 5px 0!important;
	}
    
/* ADS */
.adsterra-mobile { display:none }

.adsterra-mobile iframe, .adsterra-desktop iframe {
    margin: 0 auto;
    display: block;
}


@media(max-width:768px){
  .adsterra-mobile{display:block}
  .adsterra-desktop{display:none}

}