body {
    font-family: 'Roboto';
    background-color: #1b1b1b;
}

.p-yellow {
    color: #ffa31a !important;
}

.bg-yellow {
    background-color: #ffa31a !important;
}

.btn-yellow{
    background-color: #ffa31a !important;
    color: black;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-post-category-badge-ml-4{
    margin-left: 4px;
}

.p-white {
    color: #fff !important;
}

.p-gray {
    color: #808080 !important;
}

.p-gray-light {
    color: #b7b7b7!important;
}

.p-dark-1 {
    color: #292929 !important;
}

.p-dark-2 {
    color: #1b1b1b !important;
}

.inline-ad {
    width: 100%;
    min-height: 80px;
    display: block;
}

input::placeholder,
textarea::placeholder {
    color: #999 !important;
    opacity: 1 !important;
    font-size: 0.9em;
}

.p-blue {
    color: #4ebafc !important;
}

.post-info-content{
    color: #f6f8f7;
    line-height: 32px;
}


.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: #1b1b1b;
    border-bottom: 1px solid #1b1b1b;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.logo span {
    color: #333;
}

.top-links a {
    font-size: 0.9rem;
    margin-left: 15px;
    color: #4ebafc;
    text-decoration: none;
}

.top-links a:hover {
    text-decoration: underline;
}

.search-box input {
    max-width: 250px;
}

.signin-btn {
    font-size: 0.85rem;
}

.black-menu {
    background-color: #111;
    padding: 5px 0;
}

.black-menu a {
    color: white;
    font-size: 0.85rem;
    text-decoration: none;
    margin: 6px;
    border-radius: 0.25rem;
}

.black-menu a:hover {
    background-color: #333;
    text-decoration: none;
}

.sidebar {
    width: 250px;
    background-color: #292929;
    height: 100%;
    position: fixed;
    top: 0;
    left: -260px;
    z-index: 1050;
    padding: 15px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.sidebar.open {
    left: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1040;
    display: none;
}

.overlay.show {
    display: block;
}

.card {
    border-radius: 0.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 991px) {

    .top-links,
    .search-box,
    .signin-btn,
    .black-menu {
        display: none !important;
    }
}

.dropdown-wrapper {
    position: relative;
    margin: 0 10px;
}

.dropdown-wrapper a {
    position: relative;
    padding: 6px 10px;
    display: inline-block;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #222;
    border-radius: 4px;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.dropdown-wrapper.has-submenu:hover .submenu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


.submenu a {
    color: white;
    padding: 8px 15px;
    text-align: left;
    white-space: nowrap;
    font-size: 0.85rem;
    text-decoration: none;
}

.submenu a:hover {
    background-color: #333;
    text-decoration: none;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu li a {
    color: #fff;
    text-decoration: none;
}

.sidebar-has-submenu > .submenu-toggle {
    cursor: pointer;
    display: block;
    padding: 8px 0;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.sidebar-has-submenu.open i {
    transform: rotate(180deg);
    /* چرخش به سمت بالا */
}

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding-left: 15px;
}

.sidebar-submenu li a {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    color: #4ebafc;
}

.sidebar-has-submenu.open > .sidebar-submenu {
    max-height: 500px;

}

.post-info-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.tool-item {
    cursor: pointer;
    border-radius: .4rem;
}

.tool-item:hover {
    background: #494949;
    padding-left: 10px;
}

.recent-game-margin-right{
    margin-right: 10px;
}

.icon-margin-right{
    margin-right: 6px;
}

.date-box{
    margin-right: 6px;
}

.tool-item a {
    cursor: pointer;
    color: #fff;
    text-decoration: none;
}

.title-right-line {
    height: 10px;
    background: #292929;
    border-radius: 3px;
}

.title-right-line-side {
    height: 10px;
    background: #494949;
    border-radius: 3px;
}

.footer-title-right-line {
    height: 8px;
    border-radius: 3px;
}

.info-title {
    font-size: 0.9em;
    font-weight: 500;
}

.info-desc {
    font-size: 0.9em;
    float: right;
}

.main-info-padding {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
}

.info-copy {
    margin-right: 4px;
    cursor: pointer;
    color: #0D47A1;
}

.post-box {
    position: relative;
    color: white;
    overflow: hidden;
    border-radius: 5px;
}

.post-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-box a {
    color: #fff;
}

.post-box-date {
    color: #6c757d;
}

.post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 15px;
    font-size: 0.8rem;
}

.badge-custom {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 0.8rem;
    border-radius: 3px;
    background-color: #ffa31a !important;
    color: black;
}

.post-view-title{
    font-size: 1.5em;
}

.post-view-author{
    margin-left: 10px;
}

.badge-trailer {
    background-color: red;
}

.badge-xbox {
    background-color: deeppink;
}

.badge-playstation {
    background-color: seagreen;
}

.date-author {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.title {
    font-size: 0.8rem;
    font-weight: bold;
}

.category-desc {
    font-size: 0.9rem;
    margin-bottom: 0px;
    padding-bottom: 0px;
    color: #fff !important;
}

@media (min-width: 768px) {
    .height-main {
        height: 400px;
    }

    .height-side {
        height: 195px;
    }
}

@media (max-width: 767.98px) {
    .height-main, .height-side {
        height: 250px;
    }

    .video-card .row {
        flex-direction: column;
    }
}

.video-card {
    background-color: #292929;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    padding: 1rem;
    transition: box-shadow 0.3s ease-in-out;
}

.video-card:hover {
    background-color: #353535;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.video-duration {
    position: absolute;
    bottom: 5px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
}

.video-meta {
    font-size: 0.85rem;
    color: #b0b0b0;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: white;
}

.thumbnail-container {
    position: relative;
}

.meta-tags span {
    margin-right: 10px;
    font-size: 0.8rem;
    color: #aaa;
}

.main-post img {
    width: 100%;
    height: auto;
    border-radius: 0.25rem;
}

.main-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
    color: white;
}

.main-post-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.small-post {
    background: #292929;
    border-radius: 0.25rem;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: box-shadow 0.3s ease-in-out;
}

.small-post:hover {
    background-color: #353535;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.small-post img {
    width: 100px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
}

.small-post .text {
    flex: 1;
}

.small-post .text .title {
    font-size: 0.90rem;
    font-weight: bold;
    margin-bottom: 4px;
    color: white;
}

.small-post .text .date {
    font-size: 0.8rem;
    color: #6c757d;
}

.small-post a {
    text-decoration: none;
}

.card {
    background: #292929;
}

.game-card {
    background-color: #292929;
    border-radius: .325rem;
    display: flex;
    align-items: center;
    padding: 10px;
}

.game-card p {
    font-size: 0.8em;
    margin-top: 10px;
    margin-bottom: 10px !important;
}

.game-card img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
}

.game-info {
    flex-grow: 1;
}

.game-href {
    color: white;
    text-decoration: none;
}

.normal-card {
    background-color: #292929;
    border-radius: .325rem;
    display: flex;
    align-items: center;
    padding: 10px;
}

.normal-card p {
    font-size: 0.8em;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

.normal-card img {
    border-radius: 10px;
    object-fit: cover;
}

.normal-card h2 {
    text-align: justify;
    padding: 0px !important;
    margin: 0px !important;
    font-size: 1.3em;
}

@media (max-width: 767px) {

    .static-card {
        background-color: #292929;
        border-radius: .325rem;
        padding: 10px;
        text-align: left;
        font-size: 0.8em;
        line-height: 26px;
    }

    .normal-card {
        background-color: #292929;
        border-radius: .325rem;
        display: flex;
        align-items: center;
        padding: 10px;
    }

    .normal-card p {
        font-size: 0.8em;
        margin-top: 0px !important;
        margin-bottom: 0px !important;
    }

    .normal-card h2 {
        text-align: justify;
        padding: 0px !important;
        margin: 0px !important;
        font-size: 0.9em;
    }
}

@media (min-width: 992px) {
    .game-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: 100%;
        background-color: #292929;
        padding: 10px;
    }

    .game-card p {
        font-size: 0.8em;
        margin-top: 10px;
        margin-bottom: 10px !important;
    }

    .game-card img {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        max-width: 80px;
        height: auto;
    }

    .game-info {
        flex-grow: 0;
    }

    .play-btn {
        margin-top: auto;
    }
}
