/*
Theme Name: Newsy Child
Version: 1.0.0
Theme URI: https://demo.akbilisim.com/newsy
Description: A basic starter child theme for customization purpose of Newsy theme.
Author: akbilisim
Author URI: http://themeforest.net/user/akbilisim?ref=akbilisim
Template: newsy
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ------------------------------------------------------------------------- *
 *  Theme customization starts here
/* ------------------------------------------------------------------------- */

:root {
    --ak-highlight-color: rgb(234,67,56) !important;
}

.ak-block-header {
    --ak-block-title-bg-color: rgb(234,67,56) !important;
    --ak-block-title-text-color: rgb(234,67,56) !important;
    --ak-block-header-bg-color: rgb(234,67,56) !important;
    --ak-block-header-line-color: rgb(234,67,56) !important;
}

.single.single-post .wp-block-cover {
    min-height: 230px;
}

.btn.search-submit{
    background-color: rgb(234,67,56);
}

.ak-module-terms.badge a, .ak-module-terms.inline_badge a {
    background-color: #fdc316 !important;
}

.ak-block-header.ak-block-header-style-14.no-title .ak-block-tabs {
    background-color: #ffffff;
}

.ak-block-header.ak-block-header-style-14.no-title .ak-block-tabs>ul>li>a:hover {
    background-color: #f6f6f6;
}

.ak-block-header.ak-block-header-style-14.no-title .ak-block-tabs>ul>li>a {
    color: #000000;
}

.ak-block-header.ak-block-header-style-14.no-title .ak-block-tabs>ul>li>a {
    border-left: 1px solid #f4f4f4 !important;
}

.ak-block-header.ak-block-header-style-14.no-title .ak-block-tabs>ul {
    border: 1px solid #f4f4f4;
}

.ak-block-header.ak-block-header-style-14.no-title .ak-block-tabs>ul>li>a {
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
}

.ak-block-header.ak-block-header-style-14.no-title .ak-block-tabs>ul>li>a:hover,
.ak-bar-dark.ak-top-bar .ak-header-search .ak-search-btn {
    color: rgb(234,67,56);
}

.ak-main-wrap .ak-header-wrap .ak-top-bar.full-width, .ak-header-wrap .ak-top-bar.boxed .ak-bar-inner {
    background-color: rgb(192, 237, 245);
    border-bottom: 1px dashed #f7f7f7;
}

/* Author's Page */
.about-author-container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-author-container img {
    border-radius: 50%;
    border: 3px solid rgb(234,67,56);
    max-width: 250px;
}

.author-boxes-container > * {
    color: rgb(234,67,56);
    text-transform: uppercase;
    padding-right: 10px;
    font-weight: 600;
}

.author-boxes-container span:last-of-type{
    padding-right: 0;
}

.author-section.about-author-cta-container {
    display: flex;
    gap: 20px;
    margin: 50px 0;
}

.author-section.about-author-cta-container > * {
    display: flex;
    flex-direction: column;
    flex: 1;
    border-bottom: 4px dashed rgb(234,67,56);
    box-shadow: 0 0 20px rgb(0, 0, 0, 0.1);
    background-color: rgb(192, 237, 245);
    padding: 20px;
    justify-content: center;
    align-items: center;
}

.author-featured-in {
    margin: 60px 0;
}

.author-featured-in h2{
    text-align: center;
    text-transform: uppercase;
    font-size: 24px;
    margin-bottom: 15px;
}

.author-featured-in-container p{
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}

.author-featured-in-container p img {
    max-width: 200px;
}

@media (max-width:767px) {
    .author-section.about-author-cta-container,
    .about-author-container {
        flex-direction: column;
        gap: 20px;
    }

    .author-section.about-author-cta-container > * {
        max-width: 350px;
        min-width: 350px;
        margin: 0 auto;
    }
}

/* Single Post */
.ak-post-meta-author:hover + .author-metadata-desc, .author-metadata-desc:hover{
    visibility: visible;
}

.author-metadata-desc {
    position: absolute;
    visibility: hidden;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgb(0, 0, 0, 0.1);
    width: 350px;
    border-bottom: 4px dashed rgb(234,67,56);
    padding: 10px;
    bottom: 30px;
    transition: visibility 1s;
    left: 0;
    text-transform: none;
    font-weight: normal;
}

.author-metadata-desc img{
    float: left;
    margin-right: 10px;
    border-radius: 50%;
}

.author-metadata-desc a {
    color: rgb(234,67,56) !important;
    text-transform: uppercase;
    display: block;
    letter-spacing: 0.1em;
}

.ak-main-wrap .ak-header-wrap .ak-top-bar.full-width, .ak-header-wrap .ak-top-bar.boxed .ak-bar-inner{
    background-color: rgb(234,67,56);
}

body {
    counter-reset: question-counter;
}

.be-question {
    counter-increment: question-counter;
}

.be-question p.has-text-align-center.has-large-font-size::before {
    content: counter(question-counter) ". ";
    font-weight: bold;
    margin-right: 5px;
}

#member-secondary-nav #members-order-select {
    display: none;
}

.ak-author-box .ak-author-actions a.follow.button.btn.btn-box.rounded {
    height: 28px;
    line-height: 28px;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid #666;
    color: #666;
    background: 0 0 !important;
    border-radius: 4px;
}

/* Store Product Landing Page */
.mySlides {
    display: none;
    position: relative;
    width: 100%;
    transition: opacity 0.6s ease-in-out; /* Transition effect for smooth sliding */
}

.fade {
    animation: fadeIn 0.6s ease-in-out; /* Animation for fade effect */
}

#slides-right, #slides-left, .carousel-img {
    cursor: pointer;
}

.carousel-img {
    opacity: 0.7;
}

#slides-right svg:hover, #slides-left svg:hover {
    fill: black;
}

.opacity-off, .carousel-img:hover {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Ad modal */
#ad-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#ad-content {
    background: white;
    padding: 20px;
    text-align: center;
}
#skip-ad {
    margin-top: 10px;
    padding: 12px 24px;
    background-color: #EA4338;
    border-radius: 3px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    color: white;
    border: none;
    cursor: pointer;
}

#skip-ad:disabled {
    cursor: not-allowed;
    color: rgb(213, 213, 213);
}

.bp-member .rank-number {
    color: #333;
    font-weight: bold;
}

/* Leaderboard */
.leaderboard_title {
    color: #EA4338;
    font-family: "Mochiy Pop One", Sans-serif;
    font-size: 34px;
    font-weight: 600;
    -webkit-text-stroke-width: 0px;
    stroke-width: 0px;
    -webkit-text-stroke-color: #000;
    stroke: #000;
    text-align: center;
    margin-bottom: 15px;
}

.leaderboard_container .grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.leaderboard .bp-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.4rem;
    padding: 20px;
    position: relative;
}

.leaderboard .item {
    width: 100%;
}

.leaderboard .bp-member > * {
    text-align: center;
}

.leaderboard .item-avatar img {
    box-shadow: 0 0 5px rgb(0, 0, 0, 0.1);
    border-radius: 50%;
    background-color: white;
    margin: 0 auto;
    border-radius: 50%;
    padding: 5px;
}

.leaderboard .item-title a {
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    display: inline-block;
}

.leaderboard .item-meta {
    background-color: #f6f6f6;
    display: flex;
    flex-direction: column;
    padding: 7px;
    margin-top: 15px;
}

.leaderboard .item-meta .solved {
    font-size: 18px;
    line-height: 1.2em;
    font-weight: 600;
    color: #53585c;
}

.leaderboard .item-meta .label {
    font-size: 12px;
    line-height: 1em;
    font-weight: 400;
    color: #a0a0a0;
}

.leaderboard .rank-number {
    float: right;
    font-size: 20px;
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    background-color: #ffc201;
    line-height: 30px;
    border-radius: 50%;
    color: white;
}

/* Leaderboard tabs */
/* Tabs Navigation */
.leaderboard-tabs {
    margin: 20px 0;
}

.tab-links {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.tab-links li {
    float: left;
    margin: 0;
    width: 50%;
}

.tab-links a {
    display: block;
    background: #ffffff;
    text-decoration: none;
    color: #333;
    border: 1px solid #f4f4f4;
    border-bottom: 2px solid rgba(0,0,0,0.15);
    font-size: 12px;
    line-height: 36px;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
}

.tab-links a:hover {
    background: #ddd;
}

.tab-links .active a {
    background: #fff;
    font-weight: bold;
    border-bottom: 2px solid #EA4338;
}

/* Tabs Content */
.tab-content {
    clear: both;
    padding: 20px;
    background: #fff;
}

.tab {
    display: none;
}

.tab.active {
    display: block;
}

.item-list .bp-member {
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .leaderboard_container .grid {
        grid-template-columns: 1fr;
    }
}

#thrivecart_button{
	background-color: #0C2050;
    padding: 20px 0;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 24px;
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 5px;
    border-radius: 5px;
    max-width: 600px;
}

.ak-bar-dark, .ak-footer-wrap .ak-bar-dark.boxed .ak-bar-inner,
.ak-footer-bar.boxed.ak-bar.ak-bottom-bar.ak-bar-dark {
    background-color: #13161a;
}

.ak-bar.ak-footer-bar.ak-bottom-bar.ak-bar-dark.dark.boxed {
    background-color: #13161a !important;
}

.ak-logo-main img.site-logo, .ak-logo-main svg {
    max-width: 250px;
}

.ak-logo-image img.mobile-logo {
    max-width: 185px;
}

.ak-footer-wrap .ak-block-about-us .ak-about-image img {
    max-width: 250px;
}

.ak-footer-wrap .ak-mid-bar.full-width, .ak-footer-wrap .ak-mid-bar.boxed .ak-bar-inner {
    border-top-style: solid;
    border-top-width: 0px;
    border-bottom-style: none;
    background-image: url(https://triviawhizz.com/wp-content/uploads/2024/05/footer-top-pattern.png);
    background-repeat: repeat-x;
    background-position: top;
    background-color: rgb(0, 32, 82);
}

.ak-footer-wrap .ak-mid-bar.ak-bar.ak-footer-bar {
    height: 450px;
}

.ak-header-wrap .ak-mid-bar.full-width, .ak-header-wrap .ak-mid-bar.boxed .ak-bar-inner {
    padding-bottom: 10px;
    border-bottom-style: none;
    background-image: url(https://triviawhizz.com/wp-content/uploads/2024/05/header-bottom-pattern.png);
    background-repeat: repeat-x;
    background-position: bottom;
    background-color: rgb(192, 237, 245);
    min-height: 120px;
}

.ak-post-content .swpm_error {
    background-color: #fff5f6;
    border: 1px solid red;
}

