

/* SGG - Blog featured image: prevent cropping */

.single-post .single-featured,
.single-post .single-featured figure,
.single-post .single-featured a {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
}

.single-post .single-featured img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* Mobile */
@media only screen and (max-width: 700px) {
    .single-post .single-featured,
    .single-post .single-featured figure,
    .single-post .single-featured a {
        height: auto !important;
        aspect-ratio: auto !important;
        overflow: visible !important;
    }

    .single-post .single-featured img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

/* SGG - Blog Listing Image Fix */
/* Desktop, Tablet and Mobile */

.blog-grid .post-img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
}

.blog-grid .post-img img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* SGG Blog Page - Desktop Image Fix */
/* Preserve full 16:9 banners */

@media screen and (min-width: 701px) {

    .blog-grid .post-img {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 16 / 9 !important;
        overflow: hidden !important;
    }

    .blog-grid .post-img img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}


/* ==========================================
   SGG APPARELS - BLOG DESIGN IMPROVEMENTS
   Desktop + Mobile
========================================== */

/* 1. Individual blog content - dark text */

.single-post .entry-content,
.single-post .post-content,
.single-post .single-content {
    color: #111111 !important;
}

.single-post .entry-content p,
.single-post .post-content p,
.single-post .single-content p,
.single-post .entry-content li,
.single-post .post-content li,
.single-post .single-content li {
    color: #111111 !important;
    line-height: 1.85;
}

/* 2. Blog headings - bold black */

.single-post .entry-content h1,
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4,
.single-post .entry-content h5,
.single-post .entry-content h6,
.single-post .post-content h1,
.single-post .post-content h2,
.single-post .post-content h3,
.single-post .single-content h1,
.single-post .single-content h2,
.single-post .single-content h3 {
    color: #080808 !important;
    font-weight: 800 !important;
}

/* 3. Blog content links - blue */

.single-post .entry-content a,
.single-post .post-content a,
.single-post .single-content a {
    color: #0066cc !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

/* 4. Blog links - hover */

.single-post .entry-content a:hover,
.single-post .post-content a:hover,
.single-post .single-content a:hover {
    color: #003d99 !important;
}

/* 5. Blog content - wider desktop layout */

@media screen and (min-width: 1024px) {

    .single-post .entry-content,
    .single-post .post-content,
    .single-post .single-content {
        width: 100% !important;
        max-width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .single-post .article-body,
    .single-post .post-body {
        max-width: 1200px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* 6. Blog listing card titles */

.blog-grid .post-body h2 {
    color: #111111 !important;
    transition: color 0.25s ease;
}

/* 7. Blog card hover - blue title */

.blog-grid .post:hover .post-body h2,
.blog-grid article:hover .post-body h2,
.blog-grid a:hover .post-body h2,
.blog-grid a:focus-visible .post-body h2 {
    color: #0066cc !important;
}

/* 8. Mobile blog layout */

@media screen and (max-width: 700px) {

    .single-post .entry-content,
    .single-post .post-content,
    .single-post .single-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    .single-post .entry-content p,
    .single-post .post-content p,
    .single-post .single-content p {
        line-height: 1.8;
    }
}


/* ==========================================
   SGG - Individual Blog Desktop Full Width
   ========================================== */

@media screen and (min-width: 1024px) {

    /* Override theme's 820px content limit */
    body.single-post .entry-wrap {
        width: calc(100% - 80px) !important;
        max-width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Allow content to fill the wrapper */
    body.single-post .entry-wrap .entry-content {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Remove width restrictions on text */
    body.single-post .entry-content p,
    body.single-post .entry-content h2,
    body.single-post .entry-content h3,
    body.single-post .entry-content h4,
    body.single-post .entry-content ul,
    body.single-post .entry-content ol {
        max-width: none !important;
    }
}


/* SGG Google Business Location Section */

.sgg-location-section {
    background: #f7f7f7;
    padding: 60px 20px;
}

.sgg-location-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.sgg-location-info h2 {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
}

.sgg-location-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 20px 0 10px;
}

.sgg-location-info p {
    color: #333;
    line-height: 1.8;
}

.sgg-location-info a:not(.sgg-directions-btn) {
    color: #0066cc;
}

.sgg-directions-btn {
    display: inline-block;
    background: #111;
    color: #fff !important;
    padding: 14px 25px;
    border-radius: 8px;
    margin-top: 20px;
    text-decoration: none;
}

.sgg-directions-btn:hover {
    background: #0066cc;
}

.sgg-location-map iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
    border-radius: 12px;
}

/* Mobile Responsive */

@media (max-width: 768px) {
    .sgg-location-section {
        padding: 40px 16px;
    }

    .sgg-location-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .sgg-location-info h2 {
        font-size: 26px;
    }

    .sgg-location-map iframe {
        height: 300px;
    }
}
