/* Theme Name: Yoho Outdoor Furniture

Author: Yoho Outdoor Furniture

Version: 2.5 (Footer Alignment & Border Fixes)

Template: astra

*/



/* =========================================

   1. GLOBAL VARIABLES & UTILITIES

   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Open+Sans:wght@400;500;600&display=swap');



:root {

    --yoho-green: #7EB438;

    --yoho-green-dark: #6da02e;

    --yoho-dark: #111827;

    --yoho-gray: #9CA3AF;

    --yoho-light-gray: #F9FAFB;

    --yoho-border: #E5E7EB;

}



body { 

    font-family: 'Open Sans', sans-serif; 

    color: #2C2C2C; 

    line-height: 1.7; 

    -webkit-font-smoothing: antialiased; /* Makes font look thinner/sharper on Mac */

}



h1, h2, h3, h4 { 

    font-family: 'Montserrat', sans-serif; 

    font-weight: 700; 

    color: var(--yoho-dark); 

}



.yoho-container { max-width: 1440px; margin: 0 auto; padding: 0 24px; width: 100%; }



/* =========================================

   2. SHARED COMPONENTS (Grid & Cards)

   ========================================= */

.blog-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 60px; }

@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }

@media (min-width: 1200px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }



.blog-card { background: #FFFFFF; border: 1px solid var(--yoho-border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: transform 0.3s ease; }

.blog-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); border-color: var(--yoho-green); }



/* --- MAIN BLOG PAGE IMAGES --- */

.card-img-wrap { 

    height: 400px !important; 

    overflow: hidden; 

    display: block; 

    width: 100%; 

}

.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

.blog-card:hover .card-img { transform: scale(1.05); }



.card-content { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }

.post-meta { font-size: 12px; color: #9CA3AF; margin-bottom: 8px; text-transform: uppercase; font-weight: 600; }

.card-title { font-size: 20px !important; margin-bottom: 12px; line-height: 1.4; }

.card-title a { color: var(--yoho-dark); text-decoration: none; }

.card-title a:hover { color: var(--yoho-green); }

.read-more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--yoho-dark); text-transform: uppercase; display: flex; align-items: center; gap: 6px; text-decoration: none; }

.cta-btn { background-color: var(--yoho-green); color: white; padding: 16px 36px; border-radius: 50px; font-weight: 700; text-transform: uppercase; text-decoration: none; transition: 0.3s; white-space: nowrap; display: inline-block; }

.cta-btn:hover { background-color: var(--yoho-green-dark); color: white; }



/* =========================================

   3. MAIN BLOG ARCHIVE PAGE

   ========================================= */

#yoho-blog-archive { margin-top: 100px !important; position: relative; z-index: 1; }

#yoho-blog-archive .blog-hero { background-color: var(--yoho-light-gray); padding: 60px 0; text-align: center; border-bottom: 1px solid var(--yoho-border); margin-bottom: 40px; }

#yoho-blog-archive .blog-hero h1 { font-size: 38px !important; line-height: 1.2; margin-bottom: 16px; text-transform: uppercase; }

#yoho-blog-archive .blog-hero p { font-size: 16px; max-width: 800px; margin: 0 auto; color: var(--yoho-gray); }

#yoho-blog-archive .archive-cta { background-color: var(--yoho-dark); color: white; padding: 50px 40px; border-radius: 8px; margin-bottom: 60px; display: flex; flex-direction: column; gap: 30px; }

@media (min-width: 992px) { #yoho-blog-archive .archive-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 60px; } }

#yoho-blog-archive .archive-cta h2 { color: white; font-size: 28px; margin-bottom: 12px; }

.ast-pagination { margin-top: 40px; text-align: center; }



/* =========================================

   4. SINGLE BLOG POST PAGE

   ========================================= */

.single-post .yoho-single-article,

.single-post .entry-content,

.single-post .entry-header { max-width: 800px !important; margin-left: auto !important; margin-right: auto !important; }



.yoho-single-article { margin: 140px auto 0; background: #fff; padding: 0 20px 60px 20px; }

.yoho-article-header { text-align: center; margin-bottom: 40px; padding-top: 20px; }

.yoho-meta-category a { color: var(--yoho-green); text-transform: uppercase; font-size: 13px; font-weight: 700; text-decoration: none; letter-spacing: 1px; }

.yoho-article-header h1.entry-title { font-size: 42px; line-height: 1.2; margin: 15px 0 20px; color: var(--yoho-dark); }

.yoho-meta-info { color: var(--yoho-gray); font-size: 14px; }



/* Image Fix */

.yoho-featured-image { 

    margin-bottom: 50px; 

    border-radius: 8px; 

    overflow: hidden; 

    max-height: 450px; 

    width: 100%;

    display: flex;

    justify-content: center;

}

.yoho-featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }



.yoho-article-content { font-size: 18px; line-height: 1.8; color: #374151; }

.yoho-article-content h2 { font-size: 28px; margin-top: 50px; margin-bottom: 20px; color: var(--yoho-dark); font-weight: 700; }

.yoho-article-content h3 { font-size: 24px; margin-top: 40px; margin-bottom: 15px; }

.yoho-article-content p, .yoho-article-content ul, .yoho-article-content ol { margin-bottom: 25px; }

.single-post .entry-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }



/* Social Icons */

.yoho-social-share-top { text-align: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--yoho-border); }

.share-label { display: block; font-size: 12px; text-transform: uppercase; color: var(--yoho-gray); margin-bottom: 15px; font-weight: 600; }

.social-icons-wrapper { display: flex; justify-content: center; gap: 15px; }

.share-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background-color: #f3f4f6; color: #4b5563; transition: all 0.3s ease; }

.share-icon svg { width: 20px; height: 20px; }

.share-icon:hover { transform: translateY(-3px); color: white; }

.share-icon.fb:hover { background-color: #1877F2; }

.share-icon.x:hover { background-color: #000000; }

.share-icon.in:hover { background-color: #0A66C2; }

.share-icon.pin:hover { background-color: #BD081C; }

.share-icon.wa:hover { background-color: #25D366; }

.share-icon.mail:hover { background-color: #6B7280; }



/* OEM CTA & Related Posts */

.yoho-single-cta { background-color: #F3F4F6; padding: 60px 0; margin-top: 60px; border-top: 1px solid var(--yoho-border); }

.single-cta-box { background-color: var(--yoho-dark); color: white; border-radius: 8px; padding: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }

@media (min-width: 768px) { .single-cta-box { flex-direction: row; justify-content: space-between; text-align: left; padding: 50px 60px; } }

.single-cta-box h2 { color: white !important; font-size: 24px; margin-bottom: 10px; }

.yoho-related-posts { padding: 60px 0 100px; background-color: #FFFFFF; }

.single-post .yoho-related-posts .yoho-container { max-width: 1200px !important; padding: 0 20px; }

.related-title { font-size: 28px; margin-bottom: 40px; text-align: center; font-weight: 700; text-transform: uppercase; color: var(--yoho-dark); }

.yoho-related-posts .card-img-wrap { height: 350px !important; width: 100%; }

.yoho-related-posts .card-img { height: 100%; width: 100%; object-fit: cover; }



/* Navigation */

.yoho-post-navigation { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--yoho-border); width: 100%; }

.nav-links { display: flex; justify-content: space-between; gap: 30px; width: 100%; }

.nav-previous, .nav-next { flex: 1; min-width: 0; }

.nav-box { display: flex; flex-direction: column; justify-content: center; padding: 30px; background-color: #FFFFFF; border: 1px solid var(--yoho-border); border-radius: 8px; text-decoration: none; transition: all 0.3s ease; height: 100%; }

.nav-box:hover { transform: translateY(-5px); border-color: var(--yoho-green); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }

.nav-label { display: block; font-size: 11px; text-transform: uppercase; color: #9CA3AF; margin-bottom: 8px; font-weight: 800; letter-spacing: 1px; }

.nav-title { font-family: 'Montserrat', sans-serif; font-size: 16px; font-weight: 700; color: var(--yoho-dark); line-height: 1.4; transition: color 0.2s ease; }

.nav-box:hover .nav-title { color: var(--yoho-green); }

.nav-previous .nav-box { text-align: left; }

.nav-next .nav-box { text-align: right; }

@media (max-width: 768px) { .nav-links { flex-direction: column; gap: 15px; } .nav-next .nav-box { text-align: left; } }



/* =========================================

   5. PROFESSIONAL FOOTER DESIGN (UPDATED 2.5 - FIXED)

   ========================================= */



/* 1. "Breakout" Fix for Home Page (Crucial for alignment) */

.home .site-footer {

    width: 100vw !important;

    position: relative !important;

    left: 50% !important;

    right: 50% !important;

    margin-left: -50vw !important;

    margin-right: -50vw !important;

    max-width: 100vw !important;

    box-sizing: border-box !important;

    padding-left: 20px !important;

    padding-right: 20px !important;

}



.site-footer {

    background-color: #111827 !important;

    color: #9CA3AF;

    padding-top: 90px;

    padding-bottom: 50px;

    font-size: 15px;

    margin-top: 0;

    width: 100%;

    position: relative;

    z-index: 10;

    text-align: left !important; /* Forces Left Alignment */

}



/* 2. FLEXBOX LAYOUT */

.footer-widgets {

    display: flex !important;

    flex-direction: row !important; /* Force side-by-side */

    flex-wrap: wrap !important;

    justify-content: space-between !important;

    align-items: flex-start !important;

    gap: 30px !important;

    width: 100% !important;

    max-width: 1400px !important; 

    margin: 0 auto !important;

    padding-bottom: 60px;

    /* REMOVED border-bottom to fix "two lines" issue */

    border-bottom: none !important; 

    text-align: left !important; /* Forces Left Alignment */

}



/* 3. Column Sizing Logic */

.footer-col {

    flex: 1 1 200px !important; /* Grow, Shrink, Min-width */

    width: auto !important;

    margin-bottom: 0 !important;

    display: block !important;

    text-align: left !important; /* Forces Left Alignment */

}



/* 4. Brand Column Width (Logo Section) */

.brand-col {

    flex: 1.5 1 320px !important; 

    text-align: left !important;

}



/* Headings */

.site-footer h3,

.footer-widgets h3 {

    color: #FFFFFF !important; /* Force White */

    font-size: 13px; 

    text-transform: uppercase;

    margin-bottom: 30px;

    letter-spacing: 2px; 

    font-weight: 700;

    font-family: 'Montserrat', sans-serif;

    text-align: left !important;

}



.footer-logo {

    color: #FFFFFF !important;

    font-size: 30px;

    margin-bottom: 24px;

    font-family: 'Montserrat', sans-serif;

    letter-spacing: -0.5px;

    margin-top: 0 !important;

    padding-top: 0 !important;

    text-align: left !important;

}



.brand-desc {

    margin-bottom: 30px;

    line-height: 1.8;

    max-width: 320px;

    font-size: 14px;

    color: #9CA3AF;

    text-align: left !important;

}



/* Links List (Cleaned up) */

.footer-widgets ul { 

    list-style: none !important; 

    padding-left: 0 !important; 

    margin-left: 0 !important; 

    margin-bottom: 0 !important; 

}



.footer-widgets li { 

    margin-bottom: 14px !important; 

    padding: 0 !important;

    text-align: left !important;

}



.footer-col a {

    color: #FFFFFF !important; /* Force White Links */

    text-decoration: none !important;

    display: inline-block;

    transition: all 0.3s ease;

    font-size: 14px;

    font-weight: 500;

}



.footer-col a:hover {

    color: var(--yoho-green) !important;

    padding-left: 6px;

}



/* Social Icons */

.footer-socials { display: flex; gap: 12px; justify-content: flex-start !important; }



.footer-socials a {

    color: #FFFFFF; 

    width: 44px !important;

    height: 44px !important;

    background: transparent; 

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    transition: all 0.3s ease;

    border: 1px solid #4B5563; 

    text-decoration: none !important;

}



.footer-socials a:hover {

    background: transparent;

    border-color: var(--yoho-green);

    color: var(--yoho-green); 

    transform: translateY(-3px);

    box-shadow: 0 0 15px rgba(126, 180, 56, 0.3); 

}



.footer-socials svg { 

    width: 20px !important; 

    height: 20px !important; 

    fill: currentColor; 

}



/* Contact Column */

.contact-item { margin-bottom: 25px; line-height: 1.6; text-align: left !important; }

.contact-item strong { 

    color: #6B7280; 

    display: block; 

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 5px; 

}

.contact-item span, 

.contact-item a {

    color: #FFFFFF !important; /* Force White */

    font-size: 15px;

    text-decoration: none;

}

.contact-item a:hover { color: var(--yoho-green) !important; }



/* Footer Button */

.footer-btn {

    display: inline-block;

    background-color: var(--yoho-green);

    color: white !important;

    padding: 14px 28px;

    border-radius: 4px;

    font-weight: 700;

    margin-top: 15px;

    text-transform: uppercase;

    font-size: 12px;

    letter-spacing: 1px;

    transition: all 0.3s ease;

    text-decoration: none !important;

}

.footer-btn:hover { 

    background-color: var(--yoho-green-dark); 

    transform: translateY(-2px);

}



/* Bottom Bar (Forced White Text) */

.site-info {

    display: flex !important;

    flex-direction: column;

    justify-content: space-between !important;

    align-items: center;

    padding-top: 20px !important;

    margin-top: 40px !important;

    font-size: 12px;

    gap: 15px;

    color: #ffffff !important;

    border-top: 1px solid rgba(255,255,255,0.1) !important;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    opacity: 1 !important;

}

@media (min-width: 768px) { .site-info { flex-direction: row; } }



.site-info .copyright,

.legal-links a {

    margin-left: 25px;

    color: #ffffff !important; /* Force White */

    text-decoration: none;

    transition: color 0.3s;

}

.legal-links a:hover { color: #cccccc !important; }



/* Mobile Override */

@media (max-width: 768px) {

    .footer-widgets {

        flex-direction: column !important;

        gap: 40px !important;

    }

    .footer-col, .brand-col {

        width: 100% !important;

        flex: auto !important;

    }

    .site-info {

        flex-direction: column !important;

        text-align: center !important;

        gap: 15px !important;

    }

    .legal-links a { margin: 0 10px; }

}