:root{
    --primary-cyan:#05CBE9;
    --primary-pink:#ED1CB1;
    --primary-purple:#AF5DBA;
    --main-gradient:linear-gradient(90deg,#05CBE9,#AF5DBA,#ED1CB1);
    --dark-bg:#0A0A0F;
    --dark-card:#12121A;
    --dark-light:#1B1B26;
    --white:#ffffff;
    --text-light:#D9F7FC;
    --text-muted:#9CA3AF;
    --border-glow:rgba(5,203,233,0.22);
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#f5f7fb;
}

.no_scroll{
    overflow:hidden;
}

/* Remove click square / tap highlight */
.blog_header button,
.blog_header a,
.blog_sidebar button,
.blog_sidebar a,
.blog_auth_modal button,
.blog_search_box button{
    -webkit-tap-highlight-color:transparent;
}

.blog_header button:focus,
.blog_header button:active,
.blog_header a:focus,
.blog_header a:active,
.blog_sidebar button:focus,
.blog_sidebar button:active,
.blog_sidebar a:focus,
.blog_sidebar a:active,
.blog_auth_modal button:focus,
.blog_auth_modal button:active,
.blog_search_box button:focus,
.blog_search_box button:active{
    outline:none;
    box-shadow:none;
}

.blog_header button:focus-visible,
.blog_header a:focus-visible,
.blog_sidebar button:focus-visible,
.blog_sidebar a:focus-visible,
.blog_auth_modal button:focus-visible,
.blog_search_box input:focus-visible{
    outline:2px solid var(--primary-cyan);
    outline-offset:3px;
}

/* Header */
.blog_header{
    position:fixed;
    top:0;
    left:0;
    right:0;
    width:100%;
    z-index:1800;
    background:rgba(10,10,15,0.92);
    border-bottom:1px solid var(--border-glow);
    transition:0.35s ease;
}

.blog_header_scrolled{
    background:rgba(10,10,15,0.72);
    backdrop-filter:blur(22px);
    -webkit-backdrop-filter:blur(22px);
    box-shadow:0 12px 40px rgba(0,0,0,0.25);
}

.blog_header_container{
    max-width:1250px;
    margin:auto;
    min-height:74px;
    padding:0 22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:25px;
}

.blog_logo img{
    width:100px;
    max-width:100%;
    display:block;
    filter:drop-shadow(0 0 12px rgba(5,203,233,0.25));
}

.blog_nav{
    display:flex;
    align-items:center;
    gap:8px;
}

.blog_nav a{
    color:var(--text-light);
    text-decoration:none;
    font-size:15px;
    font-weight:600;
    padding:10px 15px;
    border-radius:30px;
    transition:0.3s;
}

.blog_nav a:hover{
    background:rgba(255,255,255,0.08);
    color:var(--primary-cyan);
}

.blog_actions{
    display:flex;
    align-items:center;
    gap:12px;
    position:relative;
}

.blog_icon_btn,
.blog_menu_btn{
    width:42px;
    height:42px;
    border-radius:50%;
    border:1px solid var(--border-glow);
    background:rgba(255,255,255,0.06);
    color:var(--white);
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:0.3s;
}

.blog_icon_btn:hover,
.blog_menu_btn:hover{
    border-color:var(--primary-cyan);
    color:var(--primary-cyan);
    transform:translateY(-2px);
    box-shadow:0 0 18px rgba(5,203,233,0.25);
}

.blog_menu_btn{
    flex-direction:column;
    gap:5px;
    position:relative;
}

.blog_menu_btn span{
    width:20px;
    height:2px;
    background:var(--white);
    border-radius:10px;
    transition:0.35s ease;
}

.blog_menu_btn.active span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
    background:var(--primary-cyan);
}

.blog_menu_btn.active span:nth-child(2){
    opacity:0;
    transform:translateX(12px);
}

.blog_menu_btn.active span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
    background:var(--primary-pink);
}

.blog_login_btn{
    border:1px solid var(--primary-cyan);
    background:rgba(5,203,233,0.06);
    color:var(--primary-cyan);
    padding:10px 20px;
    border-radius:30px;
    font-weight:700;
    cursor:pointer;
    text-decoration:none;
    transition:0.3s;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.blog_login_btn:hover{
    background:var(--primary-cyan);
    color:#071017;
    transform:translateY(-3px);
    box-shadow:0 12px 28px rgba(5,203,233,0.28);
}

/* Privacy / Contact trust button replacing subscribe button */
.blog_trust_btn{
    position:relative;
    overflow:hidden;
    background:linear-gradient(90deg, rgba(5,203,233,0.18), rgba(175,93,186,0.18));
    color:var(--white);
    padding:11px 20px;
    border-radius:30px;
    font-weight:800;
    text-decoration:none;
    border:1px solid var(--border-glow);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    transition:0.3s;
}

.blog_trust_btn:hover{
    color:var(--primary-cyan);
    transform:translateY(-3px);
    box-shadow:0 12px 28px rgba(5,203,233,0.22);
}

/* Hide old subscribe button if old HTML is still present */
.blog_actions > .blog_subscribe_btn{
    display:none;
}


/* Old subscribe style kept only for sidebar/old pages if needed */
.blog_subscribe_btn{
    position:relative;
    overflow:hidden;
    background:var(--main-gradient);
    color:var(--white);
    padding:11px 22px;
    border-radius:30px;
    font-weight:800;
    text-decoration:none;
    box-shadow:0 8px 20px rgba(237,28,177,0.24);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    animation:subscribePulse 2s infinite;
}

.blog_subscribe_btn::before{
    content:"";
    position:absolute;
    top:0;
    left:-80%;
    width:55%;
    height:100%;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,0.45),transparent);
    transform:skewX(-25deg);
    animation:subscribeShine 2.8s infinite;
}

.blog_subscribe_btn:hover{
    transform:translateY(-3px);
    box-shadow:0 15px 35px rgba(237,28,177,0.36);
}

@keyframes subscribePulse{
    0%,100%{ box-shadow:0 8px 20px rgba(237,28,177,0.24); }
    50%{ box-shadow:0 8px 28px rgba(5,203,233,0.34); }
}

@keyframes subscribeShine{
    0%{ left:-80%; }
    45%,100%{ left:130%; }
}

/* Better Header Search */
.blog_search_box{
    position:absolute;
    right:0;
    top:58px;
    transform:translateY(-10px);
    width:370px;
    height:52px;
    background:rgba(255,255,255,0.98);
    border-radius:18px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:0 10px 0 18px;
    box-shadow:0 20px 50px rgba(0,0,0,0.28);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:0.3s ease;
    z-index:1500;
    border:1px solid rgba(5,203,233,0.25);
}

.blog_search_box.active{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0);
}

.blog_search_box i{
    color:var(--primary-cyan);
}

.blog_search_box input{
    width:100%;
    border:0;
    outline:0;
    font-size:15px;
    color:#111827;
    background:transparent;
}

.blog_search_close{
    width:34px;
    height:34px;
    border:0;
    border-radius:50%;
    background:#f1f5f9;
    color:#ef4444;
    font-size:18px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* Overlay */
.blog_overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.62);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    opacity:0;
    visibility:hidden;
    z-index:1900;
    transition:0.3s;
}

.blog_overlay.active{
    opacity:1;
    visibility:visible;
}

/* Premium Login Modal */
.blog_auth_modal{
    position:fixed;
    inset:0;
    z-index:2400;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    opacity:0;
    visibility:hidden;
    transform:scale(0.96);
    transition:0.3s;
}

.blog_auth_modal.active{
    opacity:1;
    visibility:visible;
    transform:scale(1);
}

.blog_auth_card{
    width:480px;
    max-width:100%;
    background:
        linear-gradient(135deg,rgba(5,203,233,0.12),transparent 35%),
        linear-gradient(315deg,rgba(237,28,177,0.14),transparent 35%),
        rgba(18,18,26,0.98);
    border:1px solid rgba(255,255,255,0.12);
    border-radius:28px;
    padding:30px;
    color:var(--white);
    position:relative;
    box-shadow:0 35px 90px rgba(0,0,0,0.65);
}

.blog_auth_card::before{
    content:"";
    position:absolute;
    inset:1px;
    border-radius:27px;
    border:1px solid rgba(5,203,233,0.18);
    pointer-events:none;
}

.blog_auth_logo{
    text-align:center;
    margin-bottom:18px;
}

.blog_auth_logo img{
    width:135px;
    filter:drop-shadow(0 0 12px rgba(5,203,233,0.28));
}

.blog_modal_close{
    position:absolute;
    top:15px;
    right:18px;
    width:38px;
    height:38px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.12);
    color:var(--white);
    border-radius:50%;
    cursor:pointer;
    transition:0.3s;
}

.blog_modal_close:hover{
    background:rgba(237,28,177,0.18);
    color:var(--primary-pink);
    transform:rotate(90deg);
}

.blog_auth_tabs{
    display:flex;
    background:rgba(255,255,255,0.06);
    border-radius:40px;
    padding:5px;
    margin-bottom:24px;
    border:1px solid rgba(255,255,255,0.08);
}

.blog_auth_tabs button{
    flex:1;
    border:0;
    padding:12px;
    border-radius:30px;
    background:transparent;
    color:var(--text-muted);
    font-weight:800;
    cursor:pointer;
    transition:0.3s;
}

.blog_auth_tabs button.active{
    background:var(--main-gradient);
    color:var(--white);
    box-shadow:0 8px 22px rgba(5,203,233,0.22);
}

.blog_auth_form{
    display:none;
}

.blog_auth_form.active{
    display:block;
    animation:formShow 0.35s ease;
}

@keyframes formShow{
    from{ opacity:0; transform:translateY(10px); }
    to{ opacity:1; transform:translateY(0); }
}

.blog_auth_form h2{
    margin:0 0 8px;
    font-size:30px;
    letter-spacing:-0.5px;
}

.blog_auth_form p{
    margin:0 0 20px;
    color:var(--text-muted);
    line-height:1.5;
}

.blog_auth_form label{
    display:block;
    margin:15px 0 8px;
    color:var(--text-light);
    font-weight:700;
}

.blog_input_group{
    height:50px;
    border-radius:15px;
    border:1px solid rgba(5,203,233,0.22);
    background:rgba(10,10,15,0.72);
    display:flex;
    align-items:center;
    gap:12px;
    padding:0 15px;
    transition:0.3s;
}

.blog_input_group:focus-within{
    border-color:var(--primary-cyan);
    box-shadow:0 0 0 4px rgba(5,203,233,0.08);
}

.blog_input_group i{
    color:var(--primary-cyan);
}

.blog_input_group input{
    width:100%;
    border:0;
    outline:0;
    background:transparent;
    color:var(--white);
    font-size:15px;
}

.blog_auth_form button[type="submit"]{
    width:100%;
    margin-top:24px;
    padding:15px;
    border:0;
    border-radius:16px;
    background:var(--main-gradient);
    color:var(--white);
    font-weight:900;
    cursor:pointer;
    transition:0.3s;
    box-shadow:0 12px 28px rgba(237,28,177,0.22);
}

.blog_auth_form button[type="submit"]:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 38px rgba(5,203,233,0.28);
}

/* Sidebar */
.blog_sidebar{
    position:fixed;
    top:0;
    right:-390px;
    width:370px;
    max-width:88%;
    height:100vh;
    background:var(--dark-card);
    color:var(--white);
    z-index:2300;
    padding:24px;
    transition:0.35s ease;
    overflow-y:auto;
    box-shadow:-20px 0 60px rgba(0,0,0,0.45);
}

.blog_sidebar.active{
    right:0;
}

.blog_sidebar_top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
    position:relative;
    z-index:2310;
}

.blog_sidebar_top img{
    width:135px;
}

.blog_sidebar_top button{
    background:rgba(255,255,255,0.07);
    border:1px solid rgba(255,255,255,0.12);
    color:var(--white);
    width:38px;
    height:38px;
    border-radius:50%;
    cursor:pointer;
    transition:0.3s;
}

.blog_sidebar_top button:hover{
    color:var(--primary-pink);
    transform:rotate(90deg);
}

.blog_sidebar_search{
    display:flex;
    background:var(--dark-light);
    border:1px solid var(--border-glow);
    border-radius:16px;
    overflow:hidden;
    margin-bottom:20px;
}

.blog_sidebar_search input{
    flex:1;
    border:0;
    outline:0;
    background:transparent;
    color:var(--white);
    padding:14px;
}

.blog_sidebar_search button{
    border:0;
    background:transparent;
    color:var(--primary-cyan);
    padding:0 14px;
    cursor:pointer;
}

.blog_mobile_nav{
    display:none;
    margin-bottom:18px;
}

.blog_mobile_nav a{
    display:block;
    color:var(--text-light);
    text-decoration:none;
    padding:13px 14px;
    border-radius:12px;
    background:rgba(255,255,255,0.04);
    margin-bottom:8px;
}

.blog_mobile_nav a i{
    width:22px;
    color:var(--primary-cyan);
}

.blog_category_toggle,
.blog_sub_toggle{
    width:100%;
    border:0;
    background:rgba(255,255,255,0.06);
    color:var(--white);
    padding:15px;
    border-radius:14px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-weight:800;
    cursor:pointer;
    margin-bottom:10px;
}

.blog_category_toggle.active{
    background:rgba(5,203,233,0.13);
}

.blog_category_list{
    display:none;
}

.blog_category_list.show{
    display:block;
}

.blog_sub_menu{
    display:none;
    padding:0 0 12px 14px;
}

.blog_sub_menu.show{
    display:block;
}

.blog_sub_menu a{
    display:block;
    color:var(--text-muted);
    text-decoration:none;
    padding:10px 12px;
    border-left:2px solid var(--border-glow);
    transition:0.25s;
}

.blog_sub_menu a:hover{
    color:var(--primary-cyan);
    padding-left:18px;
}

.blog_legal_menu{
    margin-top:18px;
}

.blog_legal_menu .blog_sub_menu{
    padding:0 0 4px 14px;
}

.blog_sidebar_bottom{
    display:flex;
    gap:10px;
    margin-top:28px;
}

.blog_sidebar_bottom .blog_login_btn,
.blog_sidebar_bottom .blog_subscribe_btn,
.blog_sidebar_bottom .blog_trust_btn{
    flex:1;
    text-align:center;
}

/* Responsive */
@media(max-width:991px){
    .blog_nav{
        display:none;
    }

    .blog_mobile_nav{
        display:block;
    }

    .blog_header_container{
        min-height:68px;
    }
}

@media(max-width:650px){
    .blog_logo img{
        width:80px;
    }

    .blog_header_container{
        padding:0 12px;
        gap:10px;
    }

    .blog_actions{
        gap:7px;
    }

    .blog_icon_btn,
    .blog_menu_btn{
        width:39px;
        height:39px;
    }

    .blog_actions > .blog_login_btn,
    .blog_actions > .blog_subscribe_btn,
    .blog_actions > .blog_trust_btn{
        width:39px;
        height:39px;
        padding:0;
        border-radius:50%;
    }

    .blog_actions > .blog_login_btn span,
    .blog_actions > .blog_subscribe_btn span,
    .blog_actions > .blog_trust_btn span{
        display:none;
    }
.blog_search_box{
        position:fixed;
        top:78px;
        left:12px;
        right:12px;
        width:auto;
        height:52px;
        z-index:1500;
    }

    .blog_auth_card{
        padding:26px 18px;
        border-radius:24px;
    }

    .blog_auth_form h2{
        font-size:26px;
    }
}


/* ===============================
   FINAL FIX: stable fixed header
   =============================== */
body{
    padding-top:74px;
}

.blog_header{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    transform:none !important;
    z-index:1800 !important;
    transition:background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease !important;
}

/* ===============================
   Best AI Tools button
   =============================== */
.blog_ai_tools_wrap{
    position:relative;
    display:inline-flex;
    align-items:center;
}

.blog_ai_tools_btn{
    position:relative;
    overflow:hidden;
    background:var(--main-gradient);
    color:var(--white);
    padding:11px 18px;
    border-radius:30px;
    font-weight:900;
    text-decoration:none;
    border:0;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(237,28,177,0.24);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    animation:subscribePulse 2s infinite;
    transition:0.3s;
    white-space:nowrap;
}

.blog_ai_tools_btn::before{
    content:"";
    position:absolute;
    top:0;
    left:-80%;
    width:55%;
    height:100%;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,0.45),transparent);
    transform:skewX(-25deg);
    animation:subscribeShine 2.8s infinite;
}

.blog_ai_tools_btn:hover,
.blog_ai_tools_btn.active{
    transform:translateY(-3px);
    box-shadow:0 15px 35px rgba(237,28,177,0.36);
}

.blog_ai_tools_btn i,
.blog_ai_tools_btn span{
    position:relative;
    z-index:1;
}

.blog_ai_arrow{
    font-size:12px;
    transition:0.3s;
}

.blog_ai_tools_btn.active .blog_ai_arrow{
    transform:rotate(180deg);
}

.blog_ai_tools_panel{
    position:absolute;
    top:58px;
    right:0;
    width:420px;
    max-width:calc(100vw - 24px);

    max-height:78vh;
    overflow-y:auto;

    background:
        linear-gradient(135deg,rgba(5,203,233,0.13),transparent 35%),
        linear-gradient(315deg,rgba(237,28,177,0.16),transparent 35%),
        rgba(18,18,26,0.98);
    border:1px solid rgba(255,255,255,0.12);
    border-radius:24px;
    padding:18px;
    color:var(--white);
    box-shadow:0 25px 70px rgba(0,0,0,0.55);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(12px) scale(0.96);
    transition:0.3s ease;
    z-index:2000;
}


.blog_ai_tools_panel.active{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0) scale(1);
}

.blog_ai_tools_panel::before{
    content:"";
    position:absolute;
    top:-8px;
    right:36px;
    width:16px;
    height:16px;
    background:rgba(18,18,26,0.98);
    border-left:1px solid rgba(255,255,255,0.12);
    border-top:1px solid rgba(255,255,255,0.12);
    transform:rotate(45deg);
}

.blog_ai_tools_panel::-webkit-scrollbar{
    width:6px;
}

.blog_ai_tools_panel::-webkit-scrollbar-track{
    background:rgba(255,255,255,0.04);
    border-radius:20px;
}

.blog_ai_tools_panel::-webkit-scrollbar-thumb{
    background:var(--main-gradient);
    border-radius:20px;
}   

.blog_ai_panel_head{
    padding:4px 4px 14px;
    border-bottom:1px solid rgba(255,255,255,0.09);
    margin-bottom:12px;
}

.blog_ai_panel_head h3{
    margin:0 0 6px;
    font-size:20px;
    letter-spacing:-0.3px;
}

.blog_ai_panel_head p{
    margin:0;
    color:var(--text-muted);
    font-size:13px;
    line-height:1.5;
}

.blog_ai_tools_grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.blog_ai_tools_grid a{
    display:flex;
    flex-direction:column;
    gap:5px;
    min-height:88px;
    padding:13px;
    border-radius:17px;
    text-decoration:none;
    color:var(--text-light);
    background:rgba(255,255,255,0.055);
    border:1px solid rgba(255,255,255,0.08);
    transition:0.28s;
}

.blog_ai_tools_grid a:hover{
    transform:translateY(-4px);
    border-color:rgba(5,203,233,0.35);
    background:rgba(5,203,233,0.10);
    box-shadow:0 12px 28px rgba(5,203,233,0.16);
}

.blog_ai_tools_grid a i{
    color:var(--primary-cyan);
    font-size:18px;
    margin-bottom:3px;
}

.blog_ai_tools_grid a span{
    font-size:14px;
    font-weight:900;
}

.blog_ai_tools_grid a small{
    color:var(--text-muted);
    line-height:1.35;
    font-size:12px;
}

@media(max-width:991px){
    body{
        padding-top:68px;
    }
}

@media(max-width:650px){
    .blog_ai_tools_btn{
        width:39px;
        height:39px;
        padding:0;
        border-radius:50%;
    }

    .blog_ai_tools_btn span,
    .blog_ai_tools_btn .blog_ai_arrow{
        display:none;
    }

    .blog_ai_tools_panel{
        position:fixed;
        top:78px;
        left:12px;
        right:12px;
        width:auto;
        max-width:none;
        max-height:72vh;
        overflow-y:auto;
    }

    .blog_ai_tools_panel::before{
        display:none;
    }

    .blog_ai_tools_grid{
        grid-template-columns:1fr;
    }
}


/* =========================================================
   FINAL LAYER / Z-INDEX FIX
   Sidebar will always show above header and overlay
   ========================================================= */

.blog_header{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    transform:none !important;
    z-index:1800 !important;
}

.blog_overlay{
    z-index:1900 !important;
}

.blog_ai_tools_panel{
    z-index:2000 !important;
}

.blog_sidebar{
    z-index:2300 !important;
    top:0 !important;
}

.blog_sidebar_top{
    position:relative !important;
    z-index:2310 !important;
}

.blog_sidebar_top button{
    position:relative !important;
    z-index:2320 !important;
}

.blog_auth_modal{
    z-index:2400 !important;
}

body.no_scroll .blog_header{
    z-index:1700 !important;
}

.blog_ai_read_more_wrap{
    margin-top:14px;
    padding-top:14px;
    border-top:1px solid rgba(255,255,255,0.10);
    text-align:center;
}

.blog_ai_read_more_btn{
    width:100%;
    min-height:46px;
    border-radius:16px;
    background:var(--main-gradient);
    color:var(--white);
    text-decoration:none;
    font-size:14px;
    font-weight:900;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    box-shadow:0 10px 28px rgba(237,28,177,0.24);
    transition:0.3s ease;
}

.blog_ai_read_more_btn:hover{
    transform:translateY(-3px);
    box-shadow:0 16px 35px rgba(5,203,233,0.28);
}

.blog_ai_read_more_btn i{
    transition:0.3s ease;
}

.blog_ai_read_more_btn:hover i{
    transform:translateX(5px);
}