@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');
*{
    font-family: "Roboto Condensed", sans-serif;
}
body{
    overflow-x: hidden;
    background-color: var(--main-color);
}

header,.header-m{
    z-index: 99;
    

}
.header-m{
    top: 0;
}
header{
    .links{
        margin-left: 31%;
    }
}
.upper-blog{
    .background{
        width: 100vw;
        position: absolute;
        top: 0;
        filter: brightness(70%);
        left: 0;
        display: flex;
        flex-wrap:wrap;
        overflow: hidden;
        flex-basis: calc(100% / 5);

        img{
            width: 100%;
            height: 88vh;
            box-shadow: 1px 1px 20px black;
            object-fit: cover;
            
        }
        img:nth-child(1){
            z-index: 6;
            filter: brightness(80%);
        }
    }
    .text_box{
        z-index: 9;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: translateY(-10%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--main-color);
        gap: 1rem;

        h1{
            font-size: 3rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--main-color);
            text-shadow: 1px 1px 10px black;
        }
        .line{
            position: absolute;
            z-index: 9;
            margin-top: 2%;
            width: 30%;
            height: 2px;
            border-radius: 2px;
            opacity: 0.7;
            background-color: var(--main-color);
        }
        p{
            font-size: 1.2rem;
            color: var(--main-color);
        }
    }
}
.content{
    margin-top: 2rem;
    width: 100%;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-bottom: 10%;
    .text-title{
        h4{
            margin-top: 1rem;
            letter-spacing: 2px;
            font-size: 1.2rem;
            opacity: 1;
            text-transform: uppercase;
            color: var(--secend-color);
        }
        .line{
            width: 1200px;
            height: 2px;
            opacity: 0.6;
            background-color: var(--secend-color);
    }}
    
}
.blog-content{
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: start;
    gap: 1rem;
    .ads{
        display: flex;
        flex-direction: column;
        column-gap: 10rem;
        width: 320px;
        position: relative;
        height: fit-content;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        cursor: pointer;
        border-radius: 10px;
        transition: 0.5s ;
        div{
            width: 280px;
            height: 600px;
            background-color: rgb(255, 255, 255);

        }
    }
    .b-content{
        width: 70%;
        font-size: 16px;
        h2{
            font-weight: 400;
            margin-top: 1rem;
            margin-bottom: 1rem;
            color: rgb(22, 22, 22);
        }
        .bold{
            font-weight: 500;
            margin-top: 1.3rem;
            margin-bottom: 0.3rem;
        }
        .list{
            margin-left: 2rem;
            font-size: 18px;
            margin-bottom: 1rem;
            
            ul{
                list-style-type:"- ";
            }
        }
        img{
            width: 90%;
            height: 90vh;
            border-radius: 5px;
        }
    }
}


/* Blog Page Modern Layout */
.blog-layout {
    display: flex;
    flex-direction: row;
    gap: 36px;
    align-items: flex-start;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}
.blog-toc {
    min-width: 220px;
    max-width: 260px;
    background: #fff7f3;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(255,126,90,0.08);
    padding: 28px 18px 18px 18px;
    position: sticky;
    top: 40px;
    height: fit-content;
    max-height: 80vh;
    overflow-y: auto;
}
.blog-toc h3 {
    color: #ff7e5a;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 1px;
}
.blog-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: none;
    overflow: visible;
}
.blog-toc li {
    margin-bottom: 12px;
    display: block;
    visibility: visible;
}
.blog-toc a {
    color: #e55d2a;
    text-decoration: none;
    font-size: 1.01rem;
    font-weight: 500;
    transition: color 0.2s;
}
.blog-toc a:hover {
    color: #222;
    text-decoration: underline;
}
.blog-main-content {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    padding: 38px 38px 32px 38px;
    min-width: 0;
}
.blog-title {
    font-size: 2.1rem;
    color: #222;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}
.blog-intro {
    font-size: 1.18rem;
    color: #444;
    margin-bottom: 32px;
    line-height: 1.7;
}
.blog-section-title {
    font-size: 1.35rem;
    color: #ff7e5a;
    font-weight: 700;
    margin: 36px 0 16px 0;
    letter-spacing: 0.5px;
}
.blog-facts-box {
    background: #fff7f3;
    border-radius: 10px;
    padding: 18px 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 6px rgba(255,126,90,0.07);
}
.blog-facts-box ul {
    margin: 0;
    padding: 0 0 0 10px;
    list-style: disc;
    color: #e55d2a;
    font-size: 1.08rem;
}
.blog-facts-box li span {
    color: #222;
    font-weight: 600;
    margin-right: 6px;
}
.blog-img-box {
    margin: 28px 0 18px 0;
    text-align: center;
}
.blog-img-box img {
    width: 98%;
    height: 400px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    display: inline-block;
}
.blog-text {
    font-size: 1.13rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 18px;
}
@media (max-width: 1000px) {
    .blog-layout {
        flex-direction: column;
        gap: 0;
    }
    .blog-toc {
        position: static;
        max-width: 100%;
        margin-bottom: 24px;
        width: 100%;
        display: block;
    }
    .blog-main-content {
        padding: 24px 8vw 24px 8vw;
    }
}
@media (max-width: 700px) {
    .blog-layout {
        padding: 0 0.5vw;
    }
    .blog-toc {
        padding: 18px 8px 8px 8px;
    }
    .blog-main-content {
        padding: 12px 2vw 18px 2vw;
    }
    .blog-title {
        font-size: 1.3rem;
    }
    .blog-img-box img {
        width: 100%;
        height: 220px;
        max-width: 100vw;
    }
}


@media (max-width: 768px) {
    .upper-blog{
        .text_box{
            h1{
                font-size: 3rem;
            }
            p{
                font-size: 1rem;
                text-align: center;
            }
        }
    }
    .content{
        margin-top: 10vh;
        
        .line{
           display: none;
           width: 10px;
        }
        .text-title{
            h4{
                margin-left: -11rem;
            }
        }
    }
    .blog-content{
        .ads{
            display: none;
        }
        .b-content{
            width: 100%;
            img{
                width: 100%;
            }
        }
    }
    
}