/* 
   Festival Theme Stylesheet
   Theme: Thai Nguyen International Tea Festival 2026
*/

:root {
    --festival-green: #116530;
    --festival-green-light: #1b8a44;
    --festival-green-dark: #0a421f;
    --festival-bg-light: #f5f8f6;
    --festival-text: #333333;
    --festival-accent: #f0a500;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--festival-text);
    background-color: var(--festival-bg-light);
}

/* Header Styles */
.festival-header {
    position: relative;
    z-index: 1000;
}

.festival-topbar {
    background: linear-gradient(to right, #0a3d24 0%, #157945 50%, #4cb887 100%);
    color: #ffffff;
    font-size: 13px;
    padding: 8px 0;
    transition: all 0.3s ease-in-out;
}

.festival-topbar a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 15px;
}

.festival-topbar a:hover {
    color: var(--festival-accent);
}

.festival-navbar {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.festival-hero {
    position: relative;
    background-image: url('../img/tea-landscape-placeholder.jpg');
    /* Needs actual image */
    background-size: cover;
    background-position: center;
    padding: 150px 0;
    color: #ffffff;
}

.festival-hero-content {
    position: relative;
    z-index: 2;
    color: var(--festival-green-dark);
}

.festival-hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--festival-green-dark);
}

.festival-hero-subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.festival-hero-info {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 30px;
    margin-right: 15px;
    font-weight: 500;
    color: var(--festival-green-dark);
}

/* Quick Links */
.festival-quick-links {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.festival-ql-container {
    background: #fff;
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .festival-quick-links {
        margin-top: -30px;
    }
    .festival-ql-container {
        border-radius: 15px;
        padding: 15px 5px;
    }
    .festival-ql-icon-wrapper {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 5px !important;
    }
    .festival-ql-icon {
        font-size: 18px !important;
    }
    .festival-ql-title {
        font-size: 11px !important;
        line-height: 1.2;
        letter-spacing: -0.2px;
    }
}

.festival-ql-icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: #ebf5ee;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.festival-ql-container a:hover .festival-ql-icon-wrapper {
    background-color: var(--festival-green);
}

.festival-ql-container a:hover .festival-ql-icon-wrapper .festival-ql-icon {
    color: #fff;
}

.festival-ql-icon {
    font-size: 20px;
    color: var(--festival-green);
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.festival-ql-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--festival-green-dark);
    text-transform: uppercase;
}

/* Page Title for Subpages */
.festival-page-title {
    padding: 110px 0 60px 0 !important;
}

/* Main Content Area */
.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.section-title i {
    color: var(--festival-green);
    font-size: 24px;
    margin-right: 10px;
}

.section-title h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    color: var(--festival-green-dark);
}

.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

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

.news-card-body {
    padding: 15px;
}

.news-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.news-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--festival-text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-large .news-card img {
    height: 350px;
}

.news-large .news-title {
    font-size: 20px;
}

/* Widgets */
.countdown-widget {
    background-color: var(--festival-green-dark);
    color: #fff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
    background-image: url('../img/leaves-bg.png');
    /* pattern */
    background-size: cover;
}

.countdown-widget h4 {
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.countdown-boxes {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cd-box {
    text-align: center;
}

.cd-num {
    font-size: 28px;
    font-weight: 700;
    display: block;
}

.cd-label {
    font-size: 12px;
}

.explore-widget {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
}

.explore-widget img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.explore-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.explore-content h4 {
    font-size: 24px;
    font-family: 'Brush Script MT', cursive;
    /* Or similar elegant font */
    margin-bottom: 5px;
}

/* Activities Section */
.activity-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 150px;
    margin-bottom: 15px;
}

.activity-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 101, 48, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.activity-overlay h5 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.quote-box {
    text-align: center;
    padding: 40px 20px;
}

.quote-box h3 {
    font-family: 'Brush Script MT', cursive;
    color: var(--festival-green-dark);
    font-size: 28px;
    margin-bottom: 10px;
}

/* Footer */
.festival-footer {
    background-color: var(--festival-green-dark);
    color: #fff;
    padding: 30px 0 10px;
    margin-top: 50px;
    border-top: 5px solid var(--festival-accent);
}

.festival-footer a {
    color: #e0e0e0;
    text-decoration: none;
}

.festival-footer a:hover {
    color: var(--festival-accent);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    margin: 0;
}

.footer-hotline {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

@media (max-width: 991.98px) {
    .festival-navbar {
        position: relative;
        top: auto;
        background: linear-gradient(135deg, #094f27 0%, #157945 100%) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        padding: 10px 0;
    }
    
    .festival-navbar.is-sticky {
        position: fixed !important;
        top: 0 !important;
        width: 100% !important;
        z-index: 1050;
    }

    .mobile-toggler-btn {
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        padding: 6px 12px;
        transition: all 0.3s ease;
    }
    
    .mobile-toggler-btn i {
        color: #ffffff;
        font-size: 22px;
    }
    
    .mobile-toggler-btn:focus, .mobile-toggler-btn:active {
        outline: none;
        background: rgba(255, 255, 255, 0.25);
    }

    .festival-navbar .navbar-collapse {
        background-color: #ffffff;
        padding: 10px 15px 20px;
        border-radius: 12px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(0,0,0,0.05);
    }
    
    .festival-navbar .nav-link {
        color: var(--festival-green-dark) !important;
        border-bottom: 1px dashed #eaeaea;
        padding: 12px 10px !important;
        font-weight: 600 !important;
    }
    
    .festival-navbar .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.festival-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    animation: slideDown 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.festival-header.is-sticky .festival-topbar {
    padding: 4px 0;
}

.festival-header.is-sticky .festival-navbar {
    padding: 8px 0;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-bottom: none;
}

/* 5-column grid for events */
.event-col-5 { padding: 0 5px; margin-bottom: 16px; }
@media (min-width: 992px) { .event-col-5 { flex: 0 0 20%; max-width: 20%; } }
@media (max-width: 991px) and (min-width: 768px) { .event-col-5 { flex: 0 0 33.333333%; max-width: 33.333333%; } }
@media (max-width: 767px) { .event-col-5 { flex: 0 0 50%; max-width: 50%; } }
@media (max-width: 480px) { .event-col-5 { flex: 0 0 50%; max-width: 50%; } }

.festival-event-card { position: relative; border-radius: 8px; overflow: hidden; height: 260px; display: block; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease; }
.festival-event-card:hover { transform: translateY(-5px); }
.festival-event-card img { width: 100%; height: 100%; object-fit: cover; }
.festival-event-overlay { position: absolute; top: 0; left: 0; width: 100%; background: linear-gradient(to bottom, rgba(11, 74, 34, 0.95) 0%, rgba(11, 74, 34, 0.7) 50%, transparent 100%); padding: 15px 5px; min-height: 120px; text-align: center; }
.festival-event-overlay h5 { color: #fff; font-size: 13px; font-weight: 700; line-height: 1.4; margin: 0; text-transform: uppercase; }

.page-title-area {
    background-image: none !important;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
}
.page-title-area::before {
    display: none !important;
}

.festival-navbar .nav-item {
    margin: 0 5px;
}

.festival-navbar .nav-link {
    color: #2b3d56 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 14px;
    padding: 10px 10px !important;
    position: relative;
    transition: all 0.3s ease;
}

.festival-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: linear-gradient(90deg, #32a852 0%, #175424 100%);
    border-radius: 3px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.festival-navbar .nav-link:hover::after,
.festival-navbar .nav-item.active > .nav-link::after,
.festival-navbar .nav-link.active::after,
.festival-navbar .current-menu-item > .nav-link::after {
    transform: scaleX(1);
}

.festival-navbar .nav-link:hover,
.festival-navbar .nav-item.active > .nav-link,
.festival-navbar .nav-link.active,
.festival-navbar .current-menu-item > .nav-link {
    color: #1a4c33 !important;
}

.festival-navbar.navbar-solid {
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    position: relative !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.btn-festival-register {
    background: linear-gradient(to right, #0a3d24 0%, #157945 100%) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 20px !important;
    padding: 8px 18px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(10, 61, 36, 0.2) !important;
    transition: all 0.3s ease !important;
}

.btn-festival-register:hover {
    background: linear-gradient(to right, #157945 0%, #0a3d24 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(10, 61, 36, 0.3) !important;
    color: #ffffff !important;
}

/* Pagination styling to match green theme */
.page-link {
    color: var(--festival-green-dark) !important;
}
.page-link:hover {
    color: var(--festival-green) !important;
    background-color: #e9ecef;
}
.page-item.active .page-link {
    background-color: var(--festival-green) !important;
    border-color: var(--festival-green) !important;
    color: #fff !important;
}

/* Override blue hover effect on service items to match festival green */
.single-services-item:before {
    background-color: var(--festival-green) !important;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
}

/* Also ensure text colors hover correctly if they were forced blue anywhere */
.single-services-item:hover h3,
.single-services-item:hover h3 a {
    color: #ffffff !important;
}

.single-services-item:hover p {
    color: #f1f1f1 !important;
}

.single-services-item:hover .services-btn a.read-more {
    color: #ffffff !important;
}

.single-services-item:hover .services-btn a.read-more i {
    color: #ffffff !important;
}

/* Clean Modern Card Layout */
.festival-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.02);
}

.festival-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.15);
}

.festival-card .card-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

.festival-card:hover .card-image img {
    transform: scale(1.08);
}

.festival-card .card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.festival-card .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--festival-green-dark);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.festival-card:hover .card-title {
    color: var(--festival-green);
}

.festival-card .card-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.festival-card .card-footer-action {
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
    display: flex;
    align-items: center;
}

.festival-card .read-more-btn {
    color: var(--festival-green);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.festival-card .read-more-btn i {
    margin-left: 6px;
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.festival-card:hover .read-more-btn {
    color: var(--festival-green-dark);
}

.festival-card:hover .read-more-btn i {
    transform: translateX(5px);
}

/* Icon specific for Trai Nghiem */
.festival-card .card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(4, 120, 87, 0.05) 100%);
    color: var(--festival-green);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.festival-card:hover .card-icon {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: #ffffff;
    transform: rotate(5deg) scale(1.05);
}

/* --- OVERRIDE WIDGET COLORS (TAGS & CATEGORIES) --- */
.widget-area .widget_categories ul li a:hover,
.widget-area .widget_categories ul li a.active,
.widget-area .widget_categories ul li.active a,
.widget_categories ul li a:hover,
.widget_categories ul li.active a {
    background-color: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}

.widget-area .tagcloud a,
.article-tags a,
.tagcloud a {
    color: #10b981 !important;
    border: 1px solid #10b981 !important;
    background-color: transparent !important;
}

.widget-area .tagcloud a:hover,
.article-tags a:hover,
.tagcloud a:hover {
    background-color: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}

