/**
 * Custom Menu Styles for Florist Hanoi
 */

/* --- Top Menu --- */
ul.toplinks {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline-block;
}

ul.toplinks li {
    display: inline-block;
    padding: 0 10px;
    line-height: 1;
}

ul.toplinks li:last-child {
    border-right: none;
}

ul.toplinks li a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

ul.toplinks li a:hover {
    color: #429338;
}


/* --- Footer Layout & Background --- */
.footer-container {
    background: url('../custom/templates/page/interflora-home14/images/footer-bg.png') repeat;
    width: 100%;
    clear: both;
    padding: 20px 0;
    overflow: hidden;
    box-sizing: border-box;
    /* Critical for grid */
}

/* --- Top Footer Section (SEO Links & Connect) --- */
.top-footer-section {
    width: 100%;
    box-sizing: border-box;
}

.seo-links-wrapper {
    width: 70%;
    /* 70% to be safe with margins */
    float: left;
    margin: 20px 0;
    padding-right: 20px;
    box-sizing: border-box;
}

.connect-wrapper {
    width: 30%;
    /* Expanded to fit content better */
    float: right;
    box-sizing: border-box;
    padding-left: 10px;
}

/* --- Bottom Footer Section --- */
.bottom-footer-content {
    width: 100%;
    box-sizing: border-box;
}

#footer2-row1 {
    width: 100%;
    margin-bottom: 20px;
}

.footer-menu-left-col {
    width: 60%;
    float: left;
    box-sizing: border-box;
    padding-right: 20px;
}

.address-block {
    width: 40%;
    float: right;
    margin-left: 0;
    box-sizing: border-box;
    padding-left: 10px;
}

/* Override default theme styles that might interfere */
.address-block .f-col {
    width: 100% !important;
    float: none !important;
}

/* --- Footer Menu (3 Columns Flat) --- */
.footer-menu-container {
    -webkit-column-count: 3;
    -moz-column-count: 3;
    column-count: 3;
    column-gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-list li {
    margin-bottom: 8px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.footer-menu-list li a {
    color: #429338;
    /* Green branding */
    font-size: 16px;
    text-decoration: none;
    display: block;
    line-height: 1.3;
}

.footer-menu-list li a:hover {
    text-decoration: underline;
}

/* --- SEO Links (Hierarchical 3 Columns) --- */
.seo-links-container {
    width: 100%;
    box-sizing: border-box;
}

.seo-links-list {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    list-style: none;
    flex-wrap: wrap;
}

.seo-links-list>li.seo-column-item {
    flex: 1;
    margin-right: 15px;
    min-width: 200px;
}

.seo-links-list>li.seo-column-item:last-child {
    margin-right: 0;
}

.seo-column-item h4 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
    margin-top: 0;
}

.seo-column-item ul.sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-column-item ul.sub-menu li {
    margin-bottom: 5px;
}

.seo-column-item ul.sub-menu li a {
    color: #429338;
    font-size: 16px;
    text-decoration: none;
    line-height: 1.4;
}

.seo-column-item ul.sub-menu li a:hover {
    text-decoration: underline;
}

/* --- Clearfixes --- */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* Make it responsive */
@media (max-width: 992px) {

    .seo-links-wrapper,
    .connect-wrapper,
    .footer-menu-left-col,
    .address-block {
        width: 100% !important;
        float: none !important;
        padding: 0;
        margin-bottom: 30px;
    }

    .footer-menu-container {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .seo-links-list {
        display: block;
    }

    .footer-menu-container {
        column-count: 1;
        /* Single column on mobile */
    }

    .seo-column-item {
        margin-bottom: 20px;
    }
}