/* Custom styles for ForexGame.net */

/* T360 Progress Bar Styles */
.t360__bar {
    background-color: #030bff;
}

/* Body background styles */
body {
    background-color: #dbdbdb;
    margin: 0;
}

/* T674 Background Image */
.t674__body_with-bg:after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    -webkit-overflow-scrolling: touch;
    background-image: url('../images/tild3564-6464-4936-b630-613963316437__bg.png');
    background-repeat: repeat;
    background-position: center;
    min-height: 100%;
    height: 100vh;
    background-attachment: initial;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    transition: all 0.2s linear;
}

/* Ensure the background is visible */
.t674__body_with-bg {
    position: relative;
}

/* T674 Block styles */
.t674 {
    position: relative;
    z-index: 1;
}

.t674__img-holder {
    display: none; /* Hide the img holder as we use the :after pseudo-element */
}

/* Force background to show */
html, body {
    height: 100%;
    min-height: 100vh;
}

/* Additional background fallback */
body.t674__body_with-bg {
    background-image: url('../images/tild3564-6464-4936-b630-613963316437__bg.png');
    background-repeat: repeat;
    background-position: center;
    background-attachment: fixed;
}

/* Hide red circle completely in rec398645403 */
#rec398645403 .tn-elem[data-elem-id="1641552697186"] {
    display: none !important;
}

/* T-records visibility styles */
@media screen and (min-width: 980px) {
    .t-records {
        opacity: 0;
    }
    .t-records_animated {
        -webkit-transition: opacity ease-in-out .5s;
        -moz-transition: opacity ease-in-out .5s;
        -o-transition: opacity ease-in-out .5s;
        transition: opacity ease-in-out .5s;
    }
    .t-records.t-records_visible,
    .t-records .t-records {
        opacity: 1;
    }
}

/* ForexGame Blog Block Styles */
#rec_blog_section {
    background: linear-gradient(135deg, #4A47A3 0%, #413C8B 100%);
    background-image: url('images/fon.png');
    background-size: cover;
    background-position: center center;
    background-blend-mode: overlay;
    padding: 80px 0;
}

#rec_blog_section .t-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

#rec_blog_section .t-container > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

#rec_blog_section .t-container > div > div:first-child {
    flex: 1;
    max-width: 600px;
    margin-right: 40px;
}

#rec_blog_section h2 {
    color: white;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    font-family: 'Roboto', Arial, sans-serif;
}

#rec_blog_section p {
    color: white;
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 40px;
    font-family: 'Roboto', Arial, sans-serif;
}

#rec_blog_section a {
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
}

#rec_blog_section a:hover {
    transform: translateY(-2px);
}

#rec_blog_section a img {
    width: 200px;
    height: 60px;
    display: block;
    cursor: pointer;
    border: none;
    outline: none;
}

#rec_blog_section .t-container > div > div:last-child {
    flex: 1;
    max-width: 500px;
    text-align: center;
}

#rec_blog_section .t-container > div > div:last-child img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

/* NEW Badge positioning */
#rec_blog_section .t-container > div:first-child {
    position: absolute;
    top: -50px;
    left: -30px;
    z-index: 10;
    transform: rotate(-15deg);
}

#rec_blog_section .t-container > div:first-child img {
    width: 120px;
    height: 70px;
}

/* Responsive Styles for Blog Block */
@media screen and (max-width: 768px) {
    #rec_blog_section .t-container > div {
        flex-direction: column !important;
        text-align: center !important;
    }
    #rec_blog_section h2 {
        font-size: 36px !important;
        margin-bottom: 20px !important;
    }
    #rec_blog_section p {
        font-size: 16px !important;
        margin-bottom: 30px !important;
    }
    #rec_blog_section .t-container > div > div:first-child {
        margin-right: 0 !important;
        margin-bottom: 40px !important;
        max-width: 100% !important;
    }
    #rec_blog_section .t-container > div > div:last-child {
        max-width: 100% !important;
    }
    /* Badge positioning for tablets */
    #rec_blog_section .t-container > div:first-child {
        top: 15px !important;
        left: 15px !important;
    }
}

@media screen and (max-width: 480px) {
    #rec_blog_section {
        padding: 60px 0 !important;
    }
    #rec_blog_section h2 {
        font-size: 28px !important;
    }
    #rec_blog_section p {
        font-size: 14px !important;
    }
    #rec_blog_section a {
        font-size: 16px !important;
        padding: 15px 25px !important;
    }
    /* Badge positioning for mobile */
    #rec_blog_section .t-container > div:first-child {
        top: 10px !important;
        left: 10px !important;
        transform: rotate(-10deg) scale(0.7) !important;
    }
}
