/* Custom Footer Upgrade - Canopy Style */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap');

.canopy-footer-wrapper {
    background-color: rgb(46, 161, 30) !important; /* Canopy Green Principal */
    color: #ffffff !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.canopy-footer-wrapper a {
    color: #e2e8f0 !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.canopy-footer-wrapper a:hover {
    color: #DA291C !important; /* Canopy Red Accent */
}

/* === TẦNG 1: TOP FOOTER BAR === */
.cn-footer-top {
    background-color: rgb(46, 161, 30) !important;
    padding: 22px 0;
    border-bottom: 1px solid #003a7a;
}

/* Ẩn footer copyright mặc định của theme Flatsome để tránh hiển thị trùng lặp */
.absolute-footer {
    display: none !important;
}

.cn-footer-top .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Sửa Tầng 1 sang Flex để tránh vỡ hàng */
.cn-footer-top-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

.cn-footer-top-grid > div,
.cn-footer-top-grid > .col {
    flex: 1 1 22% !important;
    float: none !important;
    margin: 0 !important;
}

.cn-top-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cn-top-icon {
    width: 44px;
    height: 44px;
    background-color: #002B5C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #003a7a;
    transition: all 0.3s ease;
}

.cn-top-item:hover .cn-top-icon {
    background-color: #DA291C;
    border-color: #DA291C;
}

.cn-top-icon svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.cn-top-text {
    display: flex;
    flex-direction: column;
}

.cn-top-title {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

.cn-top-subtitle {
    font-size: 12px;
    color: #cbd5e1;
    margin-top: 2px;
}

/* === TẦNG 2: MIDDLE SITEMAP GRID === */
.cn-footer-middle {
    padding: 45px 0 35px 0;
    border-bottom: 1px solid #003a7a;
}

.cn-footer-middle .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* FIX LỖI 5 CỘT BỊ RỚT HÀNG TẠI ĐÂY */
.cn-footer-middle-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 25px !important;
}

/* Ép Flatsome không được float và ép độ rộng 5 cột đều nhau */
.cn-footer-middle-grid > div,
.cn-footer-middle-grid > .col {
    flex: 1 1 17% !important;
    width: 17% !important;
    max-width: 17% !important;
    min-width: 180px;
    float: none !important;
    margin: 0 !important;
    clear: none !important;
}

.cn-middle-col-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

.cn-middle-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #DA291C;
}

.cn-middle-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cn-middle-menu li {
    margin-bottom: 10px;
}

.cn-middle-menu a {
    font-size: 13.5px;
    color: #cbd5e1;
    position: relative;
    padding-left: 0;
}

.cn-middle-menu a:hover {
    padding-left: 5px;
    color: #ffffff;
}

.cn-facebook-holder {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
    background: #ffffff;
    height: 130px;
}

/* Loại bỏ khoảng trống thừa tự sinh do thẻ br của WordPress */
.cn-fanpage-socials br,
.cn-social-list br {
    display: none !important;
}

.cn-fanpage-socials {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.cn-circle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.cn-circle-btn svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.cn-circle-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.cn-circle-btn.fb-btn { background-color: #1877F2; }
.cn-circle-btn.zl-btn { background-color: #0068FF; }
.cn-circle-btn.tt-btn { background-color: #000000; }
.cn-circle-btn.ph-btn { background-color: #10B981; } 
.cn-circle-btn.sp-btn { background-color: #EE4D2D; } 

/* === TẦNG 3: LOWER COMPANY DETAILS === */
.cn-footer-lower {
    padding: 40px 0;
    border-bottom: 1px solid #003a7a;
}

.cn-footer-lower .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* FIX LỖI TẦNG 3 BỊ RỚT KHỐI THÔNG TIN */
.cn-footer-lower-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
}

/* Định hình lại tỷ lệ 2fr 1fr 1fr bằng Flexbox */
.cn-footer-lower-grid > div:nth-child(1) {
    flex: 1 1 45% !important;
    width: 45% !important;
    max-width: 45% !important;
    float: none !important;
}

.cn-footer-lower-grid > div:nth-child(2),
.cn-footer-lower-grid > div:nth-child(3) {
    flex: 1 1 22% !important;
    width: 22% !important;
    max-width: 22% !important;
    float: none !important;
}

.cn-lower-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

.cn-company-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cn-company-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 13.5px;
}

.cn-company-info svg {
    width: 16px;
    height: 16px;
    fill: #DA291C; 
    margin-top: 3px;
    flex-shrink: 0;
}

.cn-social-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cn-social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 13.5px;
}

.cn-social-link svg {
    width: 18px;
    height: 18px;
    fill: #cbd5e1;
    transition: fill 0.2s ease;
}

.cn-social-link:hover svg {
    fill: #DA291C;
}

.cn-badges-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.cn-badge-item img {
    max-height: 42px;
    object-fit: contain;
}

/* === TẦNG 4: ABSOLUTE COPYRIGHT FOOTER === */
.cn-footer-absolute {
    background-color: rgb(46, 161, 30) !important;
    padding: 20px 0;
}

.cn-footer-absolute .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cn-absolute-left {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #cbd5e1;
    font-size: 13px;
}

.cn-absolute-logo {
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

.cn-absolute-divider {
    width: 1px;
    height: 15px;
    background-color: #003a7a;
}

.cn-payment-methods {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cn-payment-methods img {
    height: 22px;
    background-color: #ffffff;
    padding: 2px 5px;
    border-radius: 3px;
}

/* === RESPONSIVE STYLES (Đảm bảo mobile tự động xuống hàng mượt mà) === */
@media (max-width: 991px) {
    .cn-footer-top-grid > div, .cn-footer-top-grid > .col {
        flex: 1 1 45% !important;
    }
    .cn-footer-middle-grid > div, .cn-footer-middle-grid > .col {
        flex: 1 1 28% !important;
        width: 28% !important;
        max-width: 28% !important;
    }
    .cn-footer-lower-grid > div {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .cn-footer-middle-grid > div, .cn-footer-middle-grid > .col {
        flex: 1 1 45% !important;
        width: 45% !important;
        max-width: 45% !important;
    }
}

@media (max-width: 575px) {
    .cn-footer-top-grid > div, .cn-footer-top-grid > .col {
        flex: 1 1 100% !important;
    }
    .cn-footer-middle-grid > div, .cn-footer-middle-grid > .col {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .cn-footer-absolute .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .cn-absolute-left {
        flex-direction: column;
        gap: 5px;
    }
    .cn-absolute-divider {
        display: none;
    }
}

/* === CANOPY NEWS & EVENTS CUSTOM STYLING === */
.canopy-news-section {
    background-color: #ffffff;
}

.news-pre-title {
    font-size: 13px;
    font-weight: 700;
    color: #10B981; 
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.news-main-title {
    font-size: 32px;
    font-weight: 800;
    color: #002B5C; 
    margin: 0 0 10px 0;
    font-family: 'Montserrat', sans-serif;
}

.news-subtitle {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
}

.canopy-news-section .box {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.canopy-news-section .box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 2b, 92, 0.08);
    border-color: #cbd5e1;
}

.canopy-news-section .box-image {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.canopy-news-section .image-cover img {
    transition: transform 0.5s ease;
}

.canopy-news-section .box:hover .image-cover img {
    transform: scale(1.05);
}

.canopy-news-section .box-text {
    padding: 20px;
    text-align: left;
}

.canopy-news-section .box-text-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.canopy-news-section .post-title {
    margin: 0 0 10px 0;
    font-family: 'Montserrat', sans-serif;
}

.canopy-news-section .post-title a {
    color: #002B5C !important;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

.canopy-news-section .post-title a:hover {
    color: #DA291C !important; 
}

.canopy-news-section .from_the_blog_excerpt {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin-top: 5px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
    font-family: 'Inter', sans-serif;
}

.canopy-news-section .post-date {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    top: 15px !important;
    left: 15px !important;
    box-shadow: none !important;
    z-index: 5;
    position: absolute;
}

.canopy-news-section .post-date .badge-inner {
    background-color: #002B5C !important; 
    color: #ffffff !important; 
    border: none !important; 
    border-radius: 6px !important;
    width: 46px !important;
    height: 52px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.canopy-news-section .post-date-day {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Montserrat', sans-serif;
}

.canopy-news-section .post-date-month {
    font-size: 9px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    display: block !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    opacity: 0.85 !important;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
}

.canopy-news-section .is-divider {
    display: none !important; 
}

.canopy-news-section .box-text {
    text-align: left !important;
    padding: 20px !important;
}

.canopy-news-section .box-text-inner {
    text-align: left !important;
    align-items: flex-start !important;
}

.canopy-news-section .box-text .button {
    background: transparent !important;
    border: none !important;
    color: #DA291C !important; 
    padding: 0 !important;
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: auto !important;
    line-height: 1.4 !important;
    min-height: 0 !important;
    border-radius: 0 !important;
    font-family: 'Montserrat', sans-serif;
}

.canopy-news-section .box-text .button:hover {
    color: #b51f14 !important;
    text-decoration: underline !important;
    background: transparent !important;
}

.canopy-news-section .box-text .button::after {
    content: ' \203A' !important; 
    font-size: 16px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    margin-left: 4px !important;
}

.canopy-news-section .flickity-prev-next-button {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
    width: 44px !important;
    height: 44px !important;
    transition: all 0.2s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10 !important;
}

.canopy-news-section .flickity-prev-next-button.previous {
    left: 15px !important;
}

.canopy-news-section .flickity-prev-next-button.next {
    right: 15px !important;
}

.canopy-news-section .flickity-prev-next-button:hover {
    background-color: #002B5C !important;
    border-color: #002B5C !important;
}

.canopy-news-section .flickity-prev-next-button:hover svg {
    fill: #ffffff !important;
}

.canopy-news-section .flickity-prev-next-button svg {
    width: 14px !important;
    height: 14px !important;
    fill: #002B5C !important;
}