/*
Theme Name: Insure Blank
Theme URI: https://woovaria
Author: WooVaria
Author URI: http://woovaria.com
Description: Giao diện WordPress dành cho lĩnh vực bảo hiểm (Insureblank).
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: insureblank
*/

/* 1. Reset box-sizing cho toàn bộ website */
html {
    box-sizing: border-box;
    overflow-x: hidden; /* Ngăn chặn cuộn ngang ở cấp độ cao nhất */
}

*, *:before, *:after {
    box-sizing: inherit;
}

/* 2. Cấu hình Body để chống tràn */
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw; /* Đảm bảo chiều rộng không vượt quá khung nhìn */
    overflow-x: hidden; /* Lớp bảo vệ thứ hai chống tràn ngang */
    position: relative; /* Giúp quản lý các phần tử con dùng absolute */
    font-family: 'Roboto', sans-serif; /* Sử dụng font Roboto */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 600; /* Đậm cho tiêu đề */
}

/* 3. Đảm bảo hình ảnh và media không tự ý đẩy khung */
img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

:root {
    font-size: 15px;
	/* Từ đây trở đi:	
	1rem = 15px
	0.875rem = 13.125px
	1.125rem = 16.875px
	*/
}

header.post-header.bg-light.py-5.border-bottom {
    display: none !important;
}




/* Trang blog chi tiet */
/* =========================
   SINGLE BLOG
========================= */

.single-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 340px;
    gap:40px;
    align-items:start;
    max-width:1280px;

    padding:30px 0;
}

/* =========================
   CONTENT
========================= */

.single-content{
    background:#fff;
    border-radius:28px;
    padding:20px;
    box-shadow:0 15px 50px rgba(15,23,42,.06);
}

/* =========================
   TITLE
========================= */

.single-content h1{
    font-size:48px;
    line-height:1.3;
    font-weight:800;
    color:#0f172a;
    margin-bottom:15px;
}

/* =========================
   META
========================= */

.meta{
    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:35px;
    color:#64748b;
    font-size:15px;
    border-bottom:1px solid #e2e8f0;
    padding-bottom:20px;
}

/* =========================
   FEATURED IMAGE
========================= */

.single-content > img,
.single-content .wp-post-image{
    width:100%;
    border-radius:24px;
    margin-bottom:40px;
}

/* =========================
   ARTICLE CONTENT
========================= */

.entry-content{
    color:#334155;
    font-size:18px;
    line-height:1.9;
}

/* Paragraph */

.entry-content p{
    margin-bottom:25px;
}

/* Headings */

.entry-content h2{
    font-size:36px;
    line-height:1.4;
    margin-top:60px;
    margin-bottom:25px;
    color:#0f172a;
    font-weight:700;
}

.entry-content h3{
    font-size:28px;
    line-height:1.4;
    margin-top:45px;
    margin-bottom:20px;
    color:#0f172a;
}

.entry-content h4{
    font-size:22px;
    margin-top:30px;
    margin-bottom:15px;
}

/* =========================
   LINKS
========================= */

.entry-content a{
    color:#ec4899;
    text-decoration:none;
    font-weight:600;
}

.entry-content a:hover{
    color:#db2777;
}

/* =========================
   LISTS
========================= */

.entry-content ul,
.entry-content ol{
    padding-left:25px;
    margin-bottom:25px;
}

.entry-content li{
    margin-bottom:12px;
}

/* =========================
   IMAGES
========================= */

.entry-content img{
    border-radius:20px;
    margin:35px auto;
    display:block;
    max-width:100%;
    height:auto;
}

/* =========================
   BLOCKQUOTE
========================= */

.entry-content blockquote{
    background:#fff1f6;
    border-left:5px solid #ec4899;
    padding:25px;
    border-radius:16px;
    margin:35px 0;
    font-style:italic;
}

/* =========================
   TABLE
========================= */

.entry-content table{
    width:100%;
    border-collapse:collapse;
    margin:35px 0;
}

.entry-content table th{
    background:#ec4899;
    color:#fff;
    padding:15px;
}

.entry-content table td{
    border:1px solid #e2e8f0;
    padding:15px;
}

/* =========================
   SIDEBAR
========================= */

.single-sidebar{
    position:sticky;
    top:30px;
}

/* =========================
   AUTHOR BOX
========================= */

.author-box{
    margin-top:60px;
    padding:30px;
    background:#fff1f6;
    border-radius:24px;
}

/* =========================
   RELATED POSTS
========================= */

.related-posts{
    margin-top:70px;
}

.related-posts h2{
    font-size:32px;
    margin-bottom:30px;
}

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

.related-item{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(15,23,42,.05);
    transition:.3s;
}

.related-item:hover{
    transform:translateY(-5px);
}

.related-item img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.related-item-content{
    padding:20px;
}

/* =========================
   TOC
========================= */

#ez-toc-container,
.toc{
    border:none !important;
    border-radius:20px !important;
    background:#f8fafc !important;
    padding:25px !important;
    margin:35px 0 !important;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1024px){

    .single-layout{
        grid-template-columns:1fr;
    }

    .single-sidebar{
        position:relative;
        top:auto;
    }

}

@media(max-width:768px){

    .single-content{
        padding:25px;
        border-radius:20px;
    }

    .single-content h1{
        font-size:34px;
    }

    .entry-content{
        font-size:17px;
    }

    .entry-content h2{
        font-size:28px;
    }

    .entry-content h3{
        font-size:24px;
    }

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

}

/* Css side bar */
.sidebar-product{
    display:flex;
    gap:15px;
    margin-bottom:18px;
    padding-bottom:18px;
    border-bottom:1px solid #f1f5f9;
}

.sidebar-product:last-child{
    border:none;
    margin-bottom:0;
    padding-bottom:0;
}

.product-thumb{
    width:85px;
    flex-shrink:0;
}

.product-thumb img{
    width:85px;
    height:85px;
    object-fit:cover;
    border-radius:14px;
    transition:.3s;
}

.sidebar-product:hover img{
    transform:scale(1.05);
}

.product-info{
    flex:1;
}

.product-title{
    display:block;
    color:#0f172a;
    font-size:15px;
    font-weight:600;
    line-height:1.5;
    margin-bottom:8px;
}

.product-title:hover{
    color:#ec4899;
}

.product-price{
    color:#ef4444;
    font-size:18px;
    font-weight:700;
}

.product-price del{
    color:#94a3b8;
    font-size:14px;
    margin-right:6px;
}

.product-price ins{
    text-decoration:none;
}






/* CSS trang blog list */
.knowledge-page {
    margin-bottom: 40px;
}
.knowledge-page a {
    text-decoration: none;
}
.single-blog .btn{
    display:inline-block;
    margin-top:15px;
    background:#fff;
    color:#ec4899;
    padding:12px 25px;
    border-radius:999px;
    font-weight:700;
}

.single-blog .btn:hover{
    transform:translateY(-3px);
}
.cta-box{
    background:linear-gradient(
    135deg,
    #ec4899,
    #fb7185
    );
    color:#fff;
}

.cta-box h3{
    color:#fff;
}

.cta-box p{
    color:#fff;
}
.recent-post{
    margin-bottom:15px;
}

.recent-post a{
    color:#334155;
    font-weight:500;
    line-height:1.5;
}

.recent-post a:hover{
    color:#ec4899;
}
.sidebar-widget ul li{
    border-bottom:1px solid #f1f5f9;
}

.sidebar-widget ul li:last-child{
    border:none;
}

.sidebar-widget ul li a{
    display:block;
    padding:12px 0;
    color:#475569;
}

.sidebar-widget ul li a:hover{
    color:#ec4899;
    padding-left:8px;
}
.search-form{
    display:flex;
    gap:10px;
}

.search-form input{
    flex:1;
    border:1px solid #e2e8f0;
    height:48px;
    border-radius:12px;
    padding:0 15px;
}

.search-form button{
    border:none;
    background:#ec4899;
    color:#fff;
    border-radius:12px;
    padding:0 20px;
    cursor:pointer;
    font-weight:600;
}
.sidebar-widget h3{
    font-size:24px;
    margin-bottom:20px;
    color:#0f172a;
}
.sidebar-widget{
    background:#fff;
    border-radius:24px;
    padding:30px;
    margin-bottom:25px;
    box-shadow:0 10px 30px rgba(15,23,42,.05);
}
.knowledge-sidebar{
    position:sticky;
    top:30px;
    height:max-content;
}
.post-content p{
    color:#64748b;
    font-size:15px;
}
.post-content h2{
    margin:0 0 15px;
    font-size:22px;
    line-height:1.4;
}

.post-content h2 a {
    color: #0f172a;
    text-decoration: none;
}

.post-content h2 a:hover{
    color:#ec4899;
}
.category{
    display:inline-flex;
    padding:6px 14px;
    border-radius:999px;
    background:#fce7f3;
    color:#db2777;
    font-size:13px;
    font-weight:600;
    margin-bottom:15px;
}
.post-content{
    padding:24px;
}
.post-card img{
    width:100%;
    height:240px;
    object-fit:cover;
}
.post-card{
    background:#fff;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(15,23,42,.05);
    transition:.35s;
    height:100%;
}

.post-card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 40px rgba(15,23,42,.12);
}
.post-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}
.knowledge-layout{
    display:grid;
    grid-template-columns:1fr 340px;
    gap:40px;
}
.page-header {
    margin-top: 40px;
    text-align: left;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 37px;
    font-weight: 600;
    color: #fa496e;
    margin-bottom: 15px;
}

.page-header p{
    max-width:700px;
    font-size:18px;
    color:#64748b;
}

.knowledge-layout,
.single-layout{
    display:flex;
    gap:40px;
}

.knowledge-content,
.single-content{
    width:70%;
}

.knowledge-sidebar,
.single-sidebar{
    width:30%;
}

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

.post-card{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,.06);
}

.post-card img{
    width:100%;
    height:240px;
    object-fit:cover;
}

.post-content{
    padding:20px;
}

.post-content h2{
    font-size:20px;
    margin:10px 0;
}

.sidebar-widget{
    background:#fff;
    padding:25px;
    border-radius:15px;
    margin-bottom:25px;
    box-shadow:0 5px 15px rgba(0,0,0,.05);
}

.single-content h1{
    font-size:38px;
    margin-bottom:20px;
}

.entry-content{
    margin-top:30px;
    line-height:1.8;
}

.entry-content img{
    max-width:100%;
    height:auto;
}

@media(max-width:991px){

    .knowledge-layout,
    .single-layout{
        flex-direction:column;
    }

    .knowledge-content,
    .knowledge-sidebar,
    .single-content,
    .single-sidebar{
        width:100%;
    }

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

}
@media(max-width:991px){
  .single-content h1{
    font-size:32px;
    margin-bottom:20px;
}

    .knowledge-layout{
        grid-template-columns:1fr;
    }

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

    .page-header h1{
        font-size:36px;
    }

    .single-content{
        padding:25px;
    }

}