.search-inner input {
    background-color: #fff;
    border: none;
    border-radius: .5rem;
    box-shadow: 0 1px 2px 0 rgba(48,48,48,.30),0 1px 3px 1px rgba(48,48,48,.15);
    box-sizing: border-box;
    color: #1f1f1f;
    display: block;
    font-size: 1rem;
    height: 3rem;
    padding: 0 3rem 0 3rem;
    width: 100%;
    -webkit-appearance: none
}

.search-inner .btn {
    background-color: #febe15;
    border: none;
    cursor: pointer;
    height: 40px;
    padding: 5px 30px;
    width: 100%;
    margin-top: 10px;
    border-radius: .5rem;
    color: #322a77;
}

.search-inner .btn:hover {
    color: #FEBE16
}

.search__form {
    max-width: 520px;
    margin: auto;
    position: relative
}

.search-inner svg {
    fill: #1f1f1f;
    width: 24px
}

.section-form .list {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    list-style: none;
    margin: -5px
}

.section-form .list .item {
    padding: 5px
}

.section-form .list a {
    background-color: #fff;
    color: #322A77;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px
}

.section-form .list a:hover {
    background-color: #FEBE16;
    color: #fff
}

/* --- Categories Section --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}
.category-item {
    background: rgb(236, 240, 241);
    padding: 1.5rem 1rem;
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-color);
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}
.category-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
    color: #8e44ad;
}
.category-item .icon { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }

/* --- Giao Diện Thẻ Câu Đố Hàng Ngày --- */

.riddle-card-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 10px;
}

.riddle-card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    text-align: center;
    border-top: 5px solid var(--primary-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.riddle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.riddle-card .card-title {
    background: #f39c12;
    color: #fff;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.riddle-card .card-title i {
    margin-right: 10px;
}

.riddle-card .riddle-text {
    font-size: 20px;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 30px; /* Giữ chiều cao tối thiểu cho câu đố */
    margin-bottom: 25px;
}

/* Nút xem đáp án */
.riddle-card .reveal-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.riddle-card .reveal-btn:hover {
    background-color: #357abd;
    transform: scale(1.05);
}

.riddle-card .reveal-btn i {
    margin-right: 8px;
}

/* Phần đáp án bị ẩn */
.riddle-card .answer-section {
    background-color: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #28a745; /* Màu xanh lá cho đáp án đúng */
    max-height: 0; /* Quan trọng: ẩn đi lúc đầu */
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out; /* Hiệu ứng trượt xuống */
}

.riddle-card .answer-section.show {
    max-height: 200px; /* Chiều cao tối đa khi hiện ra */
    padding: 20px; /* Thêm lại padding khi hiện ra */
}

.riddle-card .answer-section strong {
    color: #28a745;
    font-size: 18px;
}

/* Phần chân thẻ */
.riddle-card .card-footer {
    margin-top: 30px;
    border-top: 1px solid #eee;
    width: 100%;
}

.riddle-card .card-footer p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #777;
}

.riddle-card .social-icons a {
    color: #aaa;
    font-size: 22px;
    margin: 0 12px;
    transition: color 0.3s ease;
}

.riddle-card .social-icons a:hover {
    color: #8e44ad;
}

/* --- Riddle List Section --- */
.btn-primary {
    background: #8e44ad;
    color: #fff;
    border: 2px solid #8e44ad; 
    border-radius: 40px;
    padding: 5px 15px;
    font-weight: 700;
    min-width: 80px;
}
.riddle-section { max-width: 800px; margin: auto; }
.accordion-item {
    background: #fff; border-radius: 15px; margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06); overflow: hidden;
}
.accordion-header {
    padding: 1.25rem 1.5rem; cursor: pointer; display: flex;
    justify-content: space-between; align-items: center; gap: 1rem;
}
.accordion-header .title { flex-grow: 1; }
.accordion-header .index { font-weight: 700; color: #8e44ad; margin-right: 0.75rem; }

.header-buttons { display: flex; align-items: center; gap: 0.5rem; }
.copy-btn {
    background: none; border: none; cursor: pointer; padding: 5px; opacity: 0.5; transition: all 0.3s ease;
}
.copy-btn:hover { opacity: 1; transform: scale(1.1); }
.copy-btn svg { width: 22px; height: 22px; pointer-events: none; }

.accordion-content {
    padding: 0 1.5rem; max-height: 0; opacity: 0; overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.accordion-item.active .accordion-content {
    padding-bottom: 1.5rem; max-height: 300px; opacity: 1;
}

.riddle-answer { border-top: 1px dashed #ddd; padding-top: 1.5rem; }
.riddle-answer span { font-weight: 700; color: var(--success-color); }

/* --- Submit Riddle Section --- */
.submit-card {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    border-radius: 50px;
    padding: 3rem;
    text-align: center;
}
.submit-card h3 { font-size: 2rem; margin-bottom: 1rem; }
.submit-card p { color: #bdc3c7; max-width: 500px; margin: 0 auto 1.5rem auto; }

/* --- FAQ Section --- */
.faq-item {
    background: var(--white-color);
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    overflow: hidden;
}
.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '▼';
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: 300px;
    opacity: 1;
}

.line-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; -o-text-overflow: ellipsis; text-overflow: ellipsis; }
.line-text.line-text-2 { -webkit-line-clamp: 2; }

.blogs__list { padding: 0; margin: -10px; list-style: none; display: flex; flex-wrap: wrap;}
.blogs__list-item a { position: relative; display: block; background-color: #322A77; color: #fff; height: 100%;}
.blogs__list-item { transition: all ease 0.6s; width: 33.33%; padding: 10px;}
.blogs__list-item .name { font-size: 16px; }
.blogs__top .left .blogs__list-item .des { -webkit-line-clamp: 4; }
.blogs__list-item .wrap-img { display: block; position: relative; height: 0; padding-top: 66.66%; background-color: #fbfbfb; }
.blogs__list-item .wrap-img img { width: 100%; position: absolute; left: 0; top: 0; height: 100%; object-fit: cover; object-position: center;}
.blogs__list-item .wrap-content { padding: 10px; }
.blogs__list-item .category { position: absolute; right: 10px; top: 10px; background: #fff; padding: 5px; border-radius: 5px; font-size: 13px; color:  #322A77; font-weight: 600;}
.blogs__list-item .info { background-color: rgb(62 61 119); border-radius: 5px;padding: 5px; }
.blogs__list-item .info .list {display: flex; padding-left: 0; margin-bottom: 0; list-style: none;}
.blogs__list-item .info .list .item {width: 50%; font-size: 14px; }


/*Single*/
.post-cover { margin-bottom: 2rem; width: 100%; border-radius: .25rem; display: block; object-fit: cover; } 
.blog-author-links a {color: #23232d !important; font-size: 1.25rem; opacity: 0.5; padding: 0 10px; }
.blog-author-links { margin: 0 -10px; }
.blog-author-links a:hover {opacity: 0.75; }
.blog-author-links a img { width: 24px; }
#blog-author-side-card { width: 100%; border: none; border-top: 1px solid rgba(0, 0, 0, 0.1);}
#blog-author-side-card .card-body {padding: 0; display: flex;}
#blog-author-side-card .avatar { width: 6.5rem; height: 6.5rem; border-radius: 50%; object-fit: cover;}
#blog-author-side-card .blog-author-info { margin-left: 20px;}
#blog-author-side-card .blog-author-info .card-title {font-size: 18px; }
#blog-author-bottom-card {margin-top: 3rem; }
#blog-author-bottom-card .card-body {display: grid; grid-template-columns: min-content auto; grid-template-rows: auto auto; grid-column-gap: 1rem; grid-row-gap: 1rem; }
#blog-author-bottom-card .blog-author-image {width: 3.3rem; height: 3.3rem; border-radius: 50%; }
#blog-author-bottom-card .blog-author-info .card-title {font-size: 0.8rem; line-height: 1.3rem; margin-bottom: 0; font-weight: 500; }
#blog-author-side-card .blog-author-info h5 { font-size: 13px; opacity: 0.5;}
#blog-author-side-card .blog-author-info .des { font-size: 14px; }
#blog-author-bottom-card .blog-author-extra {margin: 0; }
#blog-author-bottom-card .blog-author-links { display: flex; justify-content: center; }

.tags .list-tags  { margin: -10px -3px; list-style: none; padding-left: unset; margin-bottom: unset; }
.tags .list-tags li { display: inline-block; padding: 3px 1px; }
.tags .list-tags li a { border: 1px solid #818181; border-radius: 5px; padding: 6px 8px; color: #000; text-align: center; transition: all ease 0.4s; display: inline-block; font-size: 14px; }
.tags .list-tags li a:hover { color: #e52163; border-color: #e52163; }

.socials-share__list { list-style: none; padding-left: unset; display: flex; flex-wrap: wrap; width: 100%; margin-bottom: 20px; }
.socials-share__item a { display: flex; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, 0.05); transition: all ease 0.4s; padding: 8px; margin-right: 8px;} 
.socials-share__item a svg {width: 20px; max-height: 20px; }
.socials-share__item:hover svg path { fill: #fff!important; }
.socials-share__item:first-child:hover a { background: #479be5; }
.socials-share__item:nth-of-type(2):hover a { background: #265091; }
.socials-share__item:nth-of-type(4):hover a { background: #076c9e; }
.socials-share__item:nth-of-type(3):hover a { background: #f73e2f }
.socials-share__item:nth-of-type(5):hover svg path { fill: transparent!important; }
.socials-share__item:nth-of-type(5):hover svg path.st1 { fill: #076c9e!important; }

.content-blog__box { background: #fff; }
.content-blog__box>div { position: relative;}
.content-blog__inner {
    max-width: 746px;
    margin: auto
}

.caudo {
    background: #e7f8ff;
    padding: 15px;
    border-left: 3px solid #A80002;
    display: block;
    font-size: 18px;
}

.content-blog .post-related { background: #e7f8ff; padding: 15px;}
.content-blog .post-related ul { padding-left: 16px; margin-bottom: 0; list-style: inherit;}
.content-blog .post-related p { margin-bottom: 0px; }
.content-blog .post-related a { border: none; color: #A80002;}

.widget-banner:not(:last-child) { margin-bottom: 30px; }
.widget-banner:last-child { position: sticky; position: -webkit-sticky; top: 60px; }
.widget-item.widget-banners { flex: 1; }

.relate-post .blogs__list-item.blogs-horizontal .wrap-img { width: 141.66px; }
.relate-post .blogs__list-item.blogs-horizontal .name { font-size: 13px; font-weight: bold; }
.relate-post .blogs__list-item.blogs-horizontal { padding-bottom: 0; }
.relate-post .blogs__list-item.blogs-horizontal .wrap-content { padding-left: 8px; }


.news-post .blogs__list { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.news-post .blogs__list-item { width: 50%; padding: 0 10px; }
.news-post .blogs__list-item .name { font-size: 14px; }
.news-post .relate-post .blogs__list-item.blogs-horizontal .wrap-content { padding-left: 10px; }

.news-post.news-post-related { display: none; }
.post-pagination .linkpost { display: flex; border: 1px solid #eff2f7; padding: 5px; border-radius: 10px;}
.post-pagination .linkpost .box-img { width: 160px; border-radius: 10px; overflow: hidden; margin-right: 10px;}
.post-pagination .linkpost .wrap-content { flex: 1; }
.post-pagination .blogs__list-item .name { font-size: 16px; }
.post-pagination .linkpost .wrap-content .des { font-size: 14px; }


