/*
Theme Name: Travel Spots Daily
Theme URI: https://example.com
Author: DragonSchool & AI
Description: Giao diện du lịch hiện đại dựa trên HTML/CSS tĩnh. Đã sửa lỗi font và encoding.
Version: 1.1
Text Domain: traveltips
*/

body {
    font-family: 'Poppins', sans-serif !important;
}
/* Fonts & Reset */
body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background-color: #f4f6f9;
}

body.single {
    background-color: #ffffff;
}

/* Navbar Customizations */
@media (min-width: 992px) {
    .navbar, .navbar .container-fluid, .navbar-collapse {
        overflow: visible !important;
    }
}

.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 !important;
}

@media (max-width: 991px) {
    .navbar {
        height: auto;
        padding: 0.5rem 1rem !important;
    }
    .collapsing {
        overflow: hidden !important;
    }
}

/* GTranslate Customization */
.gt-wrapper {
    position: relative;
}

#gt_selected, 
.gt_selected, 
.gt-wrapper a, 
.gt-wrapper span,
.gt-wrapper div {
    color: #4a5568 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    font-size: 16px !important;
}

.gt_container .gt_menu, .gt_white_content {
    position: absolute !important;
    top: 100% !important;
    bottom: auto !important;
    margin-top: 10px !important;
    transform: none !important;
    right: 0 !important;
    left: auto !important;
    z-index: 10000 !important;
    background-color: white !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    max-height: none !important;
    overflow: hidden !important;
    min-width: 220px !important;
    padding-bottom: 15px !important;
}

.gt_white_content a {
    color: #4a5568 !important;
    text-decoration: none !important;
}

.navbar-nav .nav-link {
    color: #4a5568 !important;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #584a5e !important;
}

.navbar-nav .nav-link.active,
.navbar-nav .current-menu-item > a,
.navbar-nav .current_page_item > a,
.navbar-nav .current-menu-ancestor > a {
    color: #584a5e !important;
    font-weight: 600;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #584a5e;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .current-menu-item > a::after,
.navbar-nav .current_page_item > a::after,
.navbar-nav .current-menu-ancestor > a::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Custom Layout Box */

.custom-layout-box {
    height: 85vh; /* Take up 85% of viewport height */
    min-height: 650px;
    max-width: 1400px;
    margin: 0 auto !important;
    border-radius: 20px;
    /* Removed overflow: hidden so dropdowns aren't cropped */
    background-color: #fff;
}

/* Left Side Styles */
.left-side {
    background-color: #ffffff;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.top-social {
    background-color: #eef0f3;
    padding-bottom: 20px;
    border-top-left-radius: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: #584a5e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: #423647;
    color: white;
}

.hero-title {
    font-size: clamp(48px, 5vw, 75px);
    font-weight: 800;
    line-height: 1.1;
    color: #584a5e;
    letter-spacing: -1px;
}

.left-footer {
    background-color: #eef0f3;
    border-bottom-left-radius: 20px;
}

.hero-description {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.8;
}

/* Buttons */
.btn-custom-primary {
    background-color: #584a5e;
    color: white;
    padding: 16px 45px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
}

.btn-custom-primary:hover {
    background-color: #423647;
    transform: translateY(-2px);
    color: white;
}

.btn-play {
    width: 55px;
    height: 55px;
    background-color: white;
    color: #584a5e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.btn-play:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Custom Search Bar */
.custom-search-bar {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 50px;
    padding: 8px 10px 8px 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    max-width: 90%;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.custom-search-bar:focus-within {
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: rgba(88, 74, 94, 0.1);
}

.custom-search-bar .search-icon {
    color: #a0a0a0;
    font-size: 18px;
    margin-right: 15px;
}

.custom-search-bar input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #4a5568;
    background: transparent;
    width: 100%;
}

.custom-search-bar input::placeholder {
    color: #a0a0a0;
}

.custom-search-bar .search-btn {
    background-color: #584a5e;
    color: white;
    border: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.custom-search-bar .search-btn:hover {
    background-color: #423647;
    transform: scale(1.05);
}

/* Location Filter Panel */
.search-wrapper {
    z-index: 100;
}
.location-filter-panel {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-radius: 18px;
    z-index: 1050;
    border: 1px solid rgba(0,0,0,0.06);
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        visibility: hidden;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
}

/* Explore Section & Tabs */
#explore-section {
    position: relative;
    z-index: 10;
}

.custom-tabs .nav-link {
    color: #6c757d;
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.custom-tabs .nav-link:hover {
    color: #584a5e;
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.custom-tabs .nav-link.active {
    background-color: #584a5e !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(88, 74, 94, 0.25) !important;
    border-color: transparent;
}

/* Custom List Cards */
.custom-list-card {
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}

.custom-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08) !important;
}

.custom-list-card img {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.explore-link {
    color: #584a5e;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.explore-link:hover {
    color: #423647;
    padding-left: 5px;
}

@media (max-width: 768px) {
    .custom-list-card img {
        border-bottom-left-radius: 0;
        border-top-right-radius: 20px;
    }
}

/* Slider / Carousel Styles */
.right-side {
    background-color: #f8f9fa;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.carousel-inner {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.carousel-item img {
    object-fit: cover;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.vertical-indicators {
    position: absolute;
    right: 30px !important;
    left: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%);
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    z-index: 10;
}

.vertical-indicators button {
    width: 14px !important;
    height: 14px !important;
    border: 2px solid white !important;
    border-radius: 50% !important;
    background-color: transparent !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
}

.vertical-indicators button.active {
    background-color: white !important;
    transform: scale(1.3);
}

.bottom-caption {
    background: rgba(0, 0, 0, 0.4);
    padding: 25px 30px;
    border-radius: 15px;
    backdrop-filter: blur(8px);
    bottom: 50px;
    left: 50px;
    right: auto;
    max-width: 80%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bottom-caption h3 {
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    font-size: 24px;
}

.bottom-caption p {
    font-size: 15px;
    margin-bottom: 0;
    color: #e9ecef;
}

/* Navbar Customizations */
.navbar-toggler {
    border: none;
    box-shadow: none !important;
}
.navbar-toggler:focus {
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    body {
        padding: 0;
    }
    .custom-layout-box {
        margin: 0 !important;
        height: auto;
        border-radius: 0;
    }
    
    .left-side {
        border-radius: 0;
    }
    .top-social {
        border-radius: 0;
        background-color: transparent;
    }
    .left-footer {
        border-radius: 0;
        background-color: transparent;
    }
    
    .right-side, .carousel-inner, .carousel-item img {
        border-radius: 0;
        height: 450px;
    }
    
    .vertical-indicators {
        flex-direction: column;
        top: 50% !important;
        bottom: auto;
        right: 15px !important;
        transform: translateY(-50%);
        justify-content: center;
        gap: 8px;
    }
    
    .vertical-indicators button {
        width: 10px !important;
        height: 10px !important;
        border-width: 1px !important;
    }

    .bottom-caption {
        left: 20px;
        bottom: 60px;
        right: 20px;
        max-width: 100%;
    }

    .hero-title {
        font-size: 40px;
    }
    
    .custom-search-bar input {
        font-size: 13px;
    }
    
    .custom-search-bar .search-icon {
        font-size: 15px;
        margin-right: 10px;
    }
    
    .custom-search-bar .search-btn {
        width: 40px;
        height: 40px;
    }

    .custom-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start !important;
        padding-bottom: 15px;
    }
    .custom-tabs .nav-item {
        white-space: nowrap;
    }
    .custom-tabs .nav-link {
        padding: 12px 30px !important;
    }
}

@media (max-width: 768px) {
    .custom-list-card img {
        border-bottom-left-radius: 0;
        border-top-right-radius: 20px;
        height: 200px !important;
    }
    
    .custom-list-card .card-body {
        padding: 20px !important;
    }
    
    .custom-list-card .card-title {
        font-size: 20px !important;
    }
}

/* Blog Section (Zig-Zag Offset Layout) */
.blog-list-container {
    max-width: 1000px;
    margin: 0 auto;
}

.blog-item {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 120px;
}

.blog-image {
    width: 65%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.blog-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-item:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    width: 45%;
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
    position: absolute;
    right: 0;
    z-index: 2;
    transition: transform 0.3s ease;
}

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

.blog-item.reverse {
    justify-content: flex-end;
}

.blog-item.reverse .blog-content {
    right: auto;
    left: 0;
}

.blog-date-badge {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    color: #584a5e;
    text-align: center;
    padding: 12px 18px;
    border-radius: 16px;
    z-index: 3;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.blog-item.reverse .blog-date-badge {
    left: auto;
    right: 30px;
}

.btn-read-more {
    display: inline-block;
    color: #584a5e;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    color: #423647;
    border-bottom-color: #584a5e;
    letter-spacing: 0.5px;
}

@media (max-width: 991px) {
    .blog-item {
        flex-direction: column;
        margin-bottom: 60px;
    }
    .blog-image {
        width: 100%;
    }
    .blog-image img {
        height: 300px;
    }
    .blog-content {
        position: relative;
        width: 90%;
        margin-top: -60px;
        right: auto;
        left: auto;
        padding: 30px 20px;
    }
    .blog-item.reverse {
        justify-content: center;
        align-items: center;
    }
}

/* Footer Styles */
.footer-section {
    background-color: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-links a {
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    color: #584a5e !important;
    padding-left: 5px;
    font-weight: 500;
}

.footer-links .current-menu-item > a,
.footer-links .current_page_item > a,
.footer-links .current-menu-ancestor > a {
    color: #584a5e !important;
    font-weight: 700;
}


.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: #f4f6f9;
    color: #584a5e;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #584a5e;
    color: #ffffff;
    transform: translateY(-3px);
}

.text-primary-custom {
    color: #584a5e;
}
.footer-bottom-links a {
    transition: color 0.2s ease !important;
}
.footer-bottom-links a:hover {
    color: #584a5e !important;
    text-decoration: underline !important;
}


/* === Custom Page Styles === */
.page-header { background: linear-gradient(135deg, #f4f6f9 0%, #eef0f3 100%); padding: 100px 0 80px; border-bottom-left-radius: 50px; border-bottom-right-radius: 50px; margin-bottom: 60px; }
.archive-card { border: none; border-radius: 20px; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.archive-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.archive-card .card-img-top { height: 240px; object-fit: cover; }
.archive-category { position: absolute; top: 20px; left: 20px; background: rgba(255,255,255,0.95); backdrop-filter: blur(5px); padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; color: #584a5e; text-transform: uppercase; box-shadow: 0 5px 15px rgba(0,0,0,0.1); z-index: 10; }

.pagination .page-link { color: #584a5e; border: none; margin: 0 5px; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-weight: 600; transition: all 0.3s ease; }
.pagination .page-item.active .page-link { background-color: #584a5e; color: white; box-shadow: 0 5px 15px rgba(88,74,94,0.3); }
.pagination .page-link:hover { background-color: #eef0f3; }

.single-hero { margin-top: 100px; height: 500px; border-radius: 30px; overflow: hidden; position: relative; margin-bottom: 50px; }
.single-hero img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 80px 40px 40px; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%); color: white; }
.article-content { font-family: 'Lora', serif !important; font-size: 19px; line-height: 1.9; color: #333; }
.article-content h2 { font-family: 'Poppins', sans-serif !important; color: #584a5e; font-weight: 700; margin-top: 50px; margin-bottom: 25px; }
.article-content h3 { font-family: 'Poppins', sans-serif !important; font-weight: 600; margin-top: 40px; }
.article-content p { margin-bottom: 25px; }
.article-content blockquote { border-left: 5px solid #584a5e; background: #f8f9fa; padding: 25px 30px; font-style: italic; font-size: 22px; color: #555; margin: 40px 0; border-radius: 0 15px 15px 0; }
.article-content img { max-width: 100%; height: auto; border-radius: 15px; margin: 30px 0; }
.article-meta { display: flex; align-items: center; gap: 20px; font-family: 'Poppins', sans-serif; }
.author-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid white; }
.tag-badge { background-color: #e8f5e9 !important; padding: 6px 16px !important; border-radius: 50px !important; display: inline-block !important; transition: all 0.3s !important; font-family: 'Poppins', sans-serif !important; }
.tag-badge a { color: #2e7d32 !important; text-decoration: none !important; font-weight: 500 !important; font-size: 14px !important; }
.tag-badge:hover { background-color: #c8e6c9 !important; }
.tag-badge:hover a { color: #1b5e20 !important; }
.related-card { border-radius: 15px; overflow: hidden; border: none; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease; }
.related-card:hover { transform: translateY(-5px); }
.related-card img { height: 200px; object-fit: cover; }

/* Professional Search Bar Styles */
.search-group-professional {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    background: #fff;
}

.search-group-professional:focus-within {
    border-color: #584a5e;
    box-shadow: 0 8px 25px rgba(88, 74, 94, 0.12) !important;
}

.search-group-professional .input-group-text {
    border-color: #e2e8f0;
    border-right: none;
}

.search-group-professional .form-control {
    border-color: #e2e8f0;
}

.search-group-professional .form-control:focus {
    z-index: 1;
}

.btn-search-professional {
    background-color: #584a5e;
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-search-professional:hover {
    background-color: #423647;
    color: #fff;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Table of Contents */
.toc-container {
    background: linear-gradient(to right bottom, #ffffff, #f8f9fa);
    border: 1px solid rgba(88, 74, 94, 0.08);
    border-left: 4px solid #584a5e;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.toc-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #584a5e;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    border-bottom: 2px dashed rgba(88, 74, 94, 0.1);
    padding-bottom: 15px;
}
.toc-title i {
    background: rgba(88, 74, 94, 0.1);
    color: #584a5e;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1rem;
}
.toc-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}
.toc-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}
.toc-list li:last-child {
    margin-bottom: 0;
}
.toc-list li.toc-h3 {
    padding-left: 40px;
    margin-top: -5px;
}
.toc-list li::before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #584a5e;
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 12px;
    opacity: 0.5;
    transition: all 0.3s ease;
}
.toc-list li.toc-h3::before {
    left: 20px;
    font-weight: 400;
    content: "\f111";
    font-size: 6px;
    top: 8px;
}
.toc-list li:hover::before {
    opacity: 1;
    color: #0d6efd;
    transform: translateX(3px);
}
.toc-list a {
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    display: inline-block;
}
.toc-list a:hover {
    color: #0d6efd;
    transform: translateX(4px);
}
