/*
Theme Name: sunnylands.vn
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Archive / Page breadcrumb - gọn gàng, dễ đọc */
.archive-breadcrumb {
    padding: 14px 0;
    margin-bottom: 8px;
}
.archive-breadcrumb .custom-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}
.archive-breadcrumb .custom-breadcrumb a {
    color: #02344a !important;
    text-decoration: none;
    transition: color 0.2s ease;
}
.archive-breadcrumb .custom-breadcrumb a:hover {
    color: #06a7ea !important;
}
.archive-breadcrumb .breadcrumb-divider {
    color: #999;
    font-weight: 300;
    user-select: none;
    margin: 0 2px;
}
.archive-breadcrumb .custom-breadcrumb .active {
    color: #333;
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#wide-nav{
    background: #02344a;
}

#wide-nav .nav > li > a{
    color: #fff;
    padding: 15px;
}

#wide-nav .nav > li > a:hover{
    background: #022a3b;
    color: #fff;
}

.nav-dropdown-has-arrow li.has-dropdown:after, .nav-dropdown-has-arrow li.has-dropdown:before{
    content: none;
}

.nav-dropdown-has-border .nav-dropdown{
    border: none;
    background: #022a3b;
    color: #fff;
}

#wide-nav .nav-dropdown>li{
    margin: 0px;
    padding: 0px;
}

#wide-nav .nav-dropdown>li>a{
    color: #fff !important;
    padding: 15px;
    margin: 0px;
}

#wide-nav .nav-dropdown>li>a:hover{
    background: #06a7ea;
    color: #fff !important;
}

#wide-nav .sub-menu{
    padding: 0px;
    margin: 0px;
}

/* Home post item - layout như mẫu: danh mục góc trái ảnh, tiêu đề dưới ảnh, ngày + author */
.home-post-item-thumb {
    position: relative;
    overflow: hidden;
    height: 220px;
}
.home-post-item-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}
.home-post-item-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.home-post-item-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff;
    color: #333;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    z-index: 2;
}
.home-post-item-category:hover {
    background: #06a7ea;
    color: #fff;
}
.home-post-item-content {
    padding: 12px 0 0;
}
.home-post-item-title {
    margin: 0 0 8px;
    font-size: 1.1em;
    line-height: 1.35;
}
.home-post-item-title a {
    color: #0066b3;
    text-decoration: none;
}
.home-post-item-title a:hover {
    text-decoration: underline;
}
.home-post-item-meta {
    font-size: 13px;
    color: #666;
}
.home-post-item-sep {
    margin: 0 6px;
    color: #999;
}
.home-post-item-author {
    font-style: italic;
}

#main, #wrapper {
    background-color: #f0f0f0;
}

.home-post-title{
    margin-top: 10px;
    color: #f6921e;
}

.home-post-item .home-post-item-content{
    background-color: #fff;
    padding: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}


.home-post-item .home-post-item-content h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Widget Bài viết theo danh mục (sidebar) - header xanh, thumbnail + tiêu đề */
.widget-sunnylands-category-posts .sunnylands-widget-header {
    background: #02344a;
    color: #fff;
    font-weight: 700;
    font-size: 1em;
    padding: 14px 16px;
    margin: 0 0 0;
    line-height: 1.3;
    margin-top: 10px;
}
.widget-sunnylands-category-posts .sunnylands-widget-posts {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
}
.widget-sunnylands-category-posts .sunnylands-widget-post-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}
.widget-sunnylands-category-posts .sunnylands-widget-post-item:last-child {
    border-bottom: none;
}
.widget-sunnylands-category-posts .sunnylands-widget-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
}
.widget-sunnylands-category-posts .sunnylands-widget-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}
.widget-sunnylands-category-posts .sunnylands-widget-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.widget-sunnylands-category-posts .sunnylands-widget-thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}
.widget-sunnylands-category-posts .sunnylands-widget-title {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}
.widget-sunnylands-category-posts .sunnylands-widget-title a {
    color: #333;
    text-decoration: none;
}
.widget-sunnylands-category-posts .sunnylands-widget-title a:hover {
    color: #06a7ea;
}
.widget-sunnylands-category-posts .sunnylands-widget-empty {
    margin: 0;
    padding: 12px 16px;
    background: #fff;
    color: #666;
    font-size: 14px;
}

/* Archive list - layout ảnh trái, nội dung phải (card) */
.archive-list-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.archive-card-item {
    margin-bottom: 16px;
    background: #e8e8e8;
    padding: 0;
}
.archive-card-item:last-child {
    margin-bottom: 0;
}
.archive-card-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.archive-card-thumb {
    flex: 0 0 38%;
    max-width: 38%;
    position: relative;
    overflow: hidden;
    height: 260px;
}
.archive-card-thumb a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.archive-card-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.archive-card-img-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #ccc;
}
.archive-card-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    background: linear-gradient( to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.25) 100% );
}
.archive-card-overlay-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.archive-card-overlay-line1,
.archive-card-overlay-line2 {
    display: block;
    color: #7dd3fc;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
    line-height: 1.2;
}
.archive-card-overlay-phone-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.archive-card-overlay-phone-label {
    font-size: 12px;
    color: #fff;
    text-transform: uppercase;
}
.archive-card-overlay-phone {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(255,255,255,0.9);
    color: #c00;
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    white-space: nowrap;
}
.archive-card-overlay-phone:hover {
    color: #a00;
    background: #fff;
}
.archive-card-content {
    flex: 1;
    min-width: 0;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.archive-card-title {
    margin: 0 0 12px;
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 700;
}
.archive-card-title a {
    color: #02344a;
    text-decoration: none;
}
.archive-card-title a:hover {
    color: #06a7ea;
    text-decoration: underline;
}
.archive-card-excerpt {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 10px;
    flex: 1;
}
.archive-card-readmore {
    color: #333;
    font-size: 0.95rem;
    text-decoration: none;
}
.archive-card-readmore:hover {
    color: #06a7ea;
    text-decoration: underline;
}

/* Archive pagination - nút xanh trắng, viền xám (class thực tế: navigation archive-pagination) */
.navigation.archive-pagination {
    margin-top: 24px;
    margin-bottom: 16px;
    padding: 12px 0;
}
.navigation.archive-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.navigation.archive-pagination .nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    color: #333;
    background: #fff;
    border: 1px solid #d0d0d0;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.navigation.archive-pagination .nav-links .page-numbers:hover {
    border-color: #007bff;
    color: #007bff;
}
.navigation.archive-pagination .nav-links .page-numbers.current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    cursor: default;
}
.navigation.archive-pagination .nav-links .page-numbers.current:hover {
    background: #007bff;
    color: #fff;
}
.navigation.archive-pagination .nav-links .page-numbers.dots {
    cursor: default;
    min-width: 40px;
    padding: 0;
}
.navigation.archive-pagination .nav-links .page-numbers.dots:hover {
    border-color: #d0d0d0;
    color: #333;
}
.navigation.archive-pagination .nav-links .prev.page-numbers,
.navigation.archive-pagination .nav-links .next.page-numbers {
    min-width: auto;
}

@media (max-width: 768px) {
    .archive-card-thumb {
        flex: 0 0 100%;
        max-width: 100%;
        height: 220px;
    }
    .archive-card-inner {
        flex-direction: column;
    }
}


.archive-title{
    color: #F6921E;
}

/* ========== Single Post (large-9 col) ========== */
.single-post-featured-image {
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: #f5f5f5;
}
.single-post-featured-image .single-post-thumb {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
}
.single-post-header {
    margin-bottom: 1.5rem;
}
.single-post-title {
    margin: 0 0 12px;
    font-size: 1.75rem;
    line-height: 1.35;
    color: #02344a;
}
.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 14px;
    color: #666;
}
.single-post-meta .meta-avatar {
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
}
.single-post-meta .meta-author a {
    color: #02344a;
    text-decoration: none;
}
.single-post-meta .meta-author a:hover {
    color: #06a7ea;
}
.single-post-meta .meta-sep {
    color: #999;
    margin: 0 2px;
}
.single-post-meta .meta-categories a {
    color: #666;
    text-decoration: none;
}
.single-post-meta .meta-categories a:hover {
    color: #06a7ea;
}
.single-post-content.entry-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}
.single-post-content.entry-content p {
    margin-bottom: 1em;
}
.single-post-content.entry-content img {
    max-width: 100%;
    height: auto;
}
.single-post-tags {
    margin-bottom: 15px;
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.single-post-tags .tags-label {
    font-weight: 600;
    color: #555;
    margin-right: 4px;
}
.single-post-tags .tag-link {
    display: inline-block;
    padding: 4px 12px;
    background: #ffffff;
    color: #02344a;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
}
.single-post-tags .tag-link:hover {
    background: #06a7ea;
    color: #fff;
}
/* Share article */
.single-post-share {
    margin-bottom: 24px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.single-post-share .share-title {
    margin: 0 0 16px;
    font-size: 1.25rem;
    color: #02344a;
    text-align: center;
}
.single-post-share .share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
}
.single-post-share .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    color: #fff;
    transition: opacity 0.2s, transform 0.2s;
}
.single-post-share .share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: #fff;
}
.single-post-share .share-facebook { background: #1877f2; }
.single-post-share .share-x { background: #000; }
.single-post-share .share-linkedin { background: #0a66c2; }
.single-post-share .share-pinterest { background: #bd081c; }
.single-post-share .share-telegram { background: #0088cc; }
.single-post-share .share-email { background: #ea4335; }
.single-post-share .share-whatsapp { background: #25d366; }
.single-post-share .share-url-wrap {
    display: flex;
    gap: 0;
    max-width: 100%;
}
.single-post-share .share-url-input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    background: #f5f5f5;
    color: #333;
}
.single-post-share .share-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 0 4px 4px 0;
    background: #bd081c;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}
.single-post-share .share-copy-btn:hover {
    background: #9a0618;
    color: #fff;
}
.single-post-share .share-copy-btn.copied {
    background: #25d366;
}

.single-post-author-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #f8f9fa;
    margin-bottom: 15px;
    border: 1px solid #eee;
}
.single-post-author-box .author-box-avatar .author-avatar {
    border-radius: 50%;
    flex-shrink: 0;
}
.single-post-author-box .author-box-info {
    flex: 1;
    min-width: 0;
}
.single-post-author-box .author-box-name {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #02344a;
}
.single-post-author-box .author-box-bio {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}
.single-post-author-box .author-box-link {
    font-size: 14px;
    color: #06a7ea;
    text-decoration: none;
}
.single-post-author-box .author-box-link:hover {
    text-decoration: underline;
}
.single-post-related {
    border-top: 1px solid #eee;
}
.single-post-related .related-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: #02344a;
}
.single-post-related .related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.single-post-related .related-item {
    display: flex;
    flex-direction: column;
}
.single-post-related .related-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16/10;
    background: #f0f0f0;
    overflow: hidden;
    margin-bottom: 10px;
}
.single-post-related .related-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.single-post-related .related-item-title {
    margin: 0 0 6px;
    font-size: 1rem;
    line-height: 1.35;
}
.single-post-related .related-item-title a {
    color: #02344a;
    text-decoration: none;
}
.single-post-related .related-item-title a:hover {
    color: #06a7ea;
}
.single-post-related .related-item-date {
    font-size: 13px;
    color: #888;
}
@media (max-width: 640px) {
    .single-post-related .related-grid {
        grid-template-columns: 1fr;
    }
    .single-post-author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}