/* Content images retain their original ratio at every breakpoint. */
main img, .winsasset-responsive-image {
    max-width: 100%;
    height: auto;
}
main .image > a { max-width: 100%; }
main .image > .winsasset-responsive-image,
main .image > a > .winsasset-responsive-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}
main .icon-box .image > img,
main .icon-box .image > .winsasset-responsive-image {
    width: auto;
    max-width: 100%;
    height: auto;
    margin-inline: auto;
}
main iframe { max-width: 100%; }
main video { max-width: 100%; }

@media (max-width: 767px) {
    .main-header .header-top .top-right {
        align-items: center;
        justify-content: space-between;
    }
    .main-header .header-top .top-right .social-links {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        margin: 0;
        padding: 0;
    }
    .main-header .header-top .top-right .social-links li { margin: 0; }
    .main-header .header-top .top-right .social-links li a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        font-size: 14px;
        line-height: 1;
    }
}

.winsasset-rich-content { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.winsasset-rich-content::after { content: ''; display: block; clear: both; }
.winsasset-rich-content * { box-sizing: border-box; max-width: 100%; }
.winsasset-rich-content .row { margin-inline: 0; }
.winsasset-rich-content .row > [class*="col-"] { min-width: 0; }
.winsasset-rich-content img { max-width: 100% !important; height: auto !important; object-fit: contain; }
.winsasset-rich-content table {
    display: block;
    max-width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.winsasset-rich-content pre { max-width: 100%; overflow-x: auto; }
.winsasset-rich-content iframe { max-width: 100% !important; }
.winsasset-rich-content ul { list-style: disc; padding-left: 24px; }
.winsasset-rich-content ol { list-style: decimal; padding-left: 24px; }
@media (min-width: 768px) {
    .winsasset-rich-content { font-size: 19px; line-height: 1.85; color: #444; }
    .winsasset-rich-content p, .winsasset-rich-content li {
        font-size: 19px !important;
        line-height: 1.85 !important;
        color: #444;
        text-align: left !important;
    }
    .winsasset-rich-content p { max-width: 78ch; margin: 0 auto 20px; }
    .winsasset-rich-content p span, .winsasset-rich-content li span { font-size: inherit !important; line-height: inherit !important; }
    .services-section-five .text, .news-block-four .text,
    .simple-item .desc p, .blog-detail .text {
        font-size: 18px;
        line-height: 1.8;
    }
}
@media (max-width: 767px) {
    .winsasset-rich-content { text-align: left; font-size: 18px; line-height: 1.8; }
    .winsasset-rich-content p, .winsasset-rich-content li { font-size: 18px !important; line-height: 1.8 !important; text-align: left !important; margin-bottom: 16px; }
    .winsasset-rich-content [style*="font-size"] { font-size: inherit !important; }
    .winsasset-rich-content img { float: none !important; display: block; margin: 18px auto !important; }
    /* แถวไอคอน + ข้อความ */
    .winsasset-rich-content .row > [class*="col-"] {
        margin-bottom: 0 !important;
    }
    .winsasset-rich-content .d-flex {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 16px;
        padding: 12px 0;
        text-align: left;
        line-height: 1.5;
    }
    .winsasset-rich-content .d-flex > img {
        margin: 0 !important;
        width: 52px !important;
        height: 52px !important;
        flex: 0 0 52px;
        display: block;
    }
    .winsasset-rich-content h2, .winsasset-rich-content h3 { font-size: 25px; line-height: 1.4; margin-block: 24px 16px; }
    .winsasset-rich-content h4, .winsasset-rich-content h5 { font-size: 21px; line-height: 1.5; margin-block: 20px 14px; }
}

.about .winsasset-project-metric.icon-box,
.property .winsasset-project-metric.icon-box {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 20px 16px;
    margin-bottom: 18px;
    min-height: 132px;
    width: 100%;
    border: 1px solid #e8e1d8;
    border-radius: 12px;
    background: #fff;
}
.winsasset-project-list .property .winsasset-project-metric.icon-box {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.about .winsasset-project-metric.icon-box .image,
.property .winsasset-project-metric.icon-box .image {
    width: 56px;
    max-width: 56px;
    margin: 0;
}
.about .winsasset-project-metric.icon-box .image img,
.property .winsasset-project-metric.icon-box .image img {
    display: block;
    width: 100%;
    max-height: 64px;
    height: auto;
    object-fit: contain;
}
.about .winsasset-project-metric.icon-box .desc,
.property .winsasset-project-metric.icon-box .desc {
    width: auto;
    min-width: 0;
    padding: 0;
    text-align: left;
    overflow-wrap: anywhere;
}
.winsasset-project-metric.icon-box .desc h4 {
    margin: 0 0 6px;
    font-size: 19px;
    line-height: 1.45;
}
.about .winsasset-project-metric.icon-box .desc p,
.property .winsasset-project-metric.icon-box .desc p {
    margin: 0;
    font-size: 16px !important;
    line-height: 1.65 !important;
}
.services-section-five .social ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0;
    margin: 24px 0;
}
.services-section-five .social ul li { margin: 0 !important; padding: 0; list-style: none; }
.services-section-five .social ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    line-height: 1;
    text-align: center;
    border-radius: 50%;
}
.services-section-five .social ul li a i {
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    font-size: 22px;
    line-height: 1;
}

/* Legacy cards used padding-ratio boxes plus absolute cover images, which cropped
   originals and zoomed/dimmed them on hover. Preserve the complete photograph. */
.image:has(.winsasset-responsive-image) {
    height: auto !important;
    padding-bottom: 0 !important;
}
.image .winsasset-responsive-image {
    position: relative !important;
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
    transform: none !important;
    opacity: 1 !important;
}

@keyframes winsasset-enter {
    from { opacity: 0.35; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.winsasset-enter { animation: winsasset-enter 520ms ease-out both; }
.theme-btn { transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.theme-btn:hover { box-shadow: 0 5px 16px rgb(0 0 0 / 12%); }
@media (prefers-reduced-motion: reduce) {
    .winsasset-enter, .wow { animation: none !important; visibility: visible !important; }
    .theme-btn { transition: none; }
    html { scroll-behavior: auto; }
}

/* Keep titles and descriptions readable instead of clipping to fixed card rows. */
.news-block-four .inner-box .lower-content .inner-content.small h3,
.news-block-four .inner-box .lower-content .inner-content.small .text {
    height: auto;
    overflow: visible;
}
@media (max-width: 767px) {
    body { font-size: 17px; line-height: 1.75; }
    .auto-container { padding-inline: 20px; }
    .services-section-five p, .services-section-five .text,
    .news-block-four .text, .simple-item .desc p,
    .blog-detail p, .blog-detail .text, .blog-detail li,
    .contact-form-section .list-style-two,
    .map-info .list-style-two, .sec-title .text {
        font-size: 18px !important;
        line-height: 1.8 !important;
        color: #484848;
        overflow-wrap: anywhere;
    }
    .half-bg .simple-item .desc p {
        color: #fff;
    }
    .blog-detail p, .services-section-five p { margin-bottom: 18px; }
    .services-section-five .text,
    .services-section-five .text p,
    .services-section-five .text div:not(.sec-title),
    .blog-detail .text, .blog-detail p { text-align: left !important; }
    .services-section-five .sec-title { text-align: center; }
    .blog-detail p span, .services-section-five p span { font-size: inherit !important; line-height: inherit !important; }
    .sec-title h2, .sec-title .inner-title h2,
    .news-block-four .inner-box .lower-content h3 {
        font-size: 27px !important;
        line-height: 1.4 !important;
        overflow-wrap: anywhere;
        text-wrap: balance;
    }
    .sec-title { margin-bottom: 28px; }
    .services-section-five, .contact-form-section,
    .sidebar-page-container, .blog-page-section { padding-block: 44px; }
    .news-block-four .inner-box .lower-content .inner-content,
    .news-block-four .inner-box .lower-content .inner-content.small {
        margin: 0;
        padding: 22px 18px 28px;
    }
    .icon-box .desc p, .icon-box .desc { font-size: 16px !important; line-height: 1.65 !important; }
    .icon-box h4 { font-size: 20px; line-height: 1.5; }
    .contact-form input, .contact-form textarea { font-size: 17px; }
    .theme-btn { font-size: 16px; min-height: 44px; }
    .main-footer, .main-footer li, .main-footer a { font-size: 16px; line-height: 1.8; }
}

/* Mobile: keep the logo and hamburger visible while scrolling (theme sticky header). */
.winsasset-sticky-toggler { display: none; }
@media (max-width: 991px) {
    .sticky-header { display: block; min-height: 64px; }
    .sticky-header .auto-container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
    .sticky-header .centered.logo { position: static !important; width: auto; margin: 0; }
    .sticky-header .logo a img { max-height: 46px; width: auto; margin: 0; }
    .sticky-header .auto-container::before, .sticky-header .auto-container::after, .sticky-header .right-col { display: none; }
    .sticky-header .winsasset-sticky-toggler { display: block; float: none; padding: 0; line-height: 44px; min-width: 44px; text-align: center; color: #bd9a68; }
}

/* Home intro: keep the owner's line break in the heading ("About us" / "The Story of Wins Asset"). */
.winsasset-home-intro .sec-title h2 br { display: initial; }
