/* --- Root Colors and Variables --- */
:root {
    --color-main-bg: #80766e; /* Main Footer Brown/Gray */
    --color-dark-gray-subscribe: #4e4039; /* Dark Gray for Subscription Box */
    --color-bottom-bg: #4e4039; /* Bottom Footer Darker Brown */
    --color-text-light: #DDD; /* Light Gray Link Text */
    --color-text-white: #FFF; /* White Headings and Hover Text */
    --color-accent-orange: #df7a00; /* Orange Social Icon Accent */
    --color-form-bg: #d0d0d0; /* Light Gray background for input/button */
}

/* --- Bootstrap Overrides --- */
.container-fluid {
    width: 100%;
    padding-right: 0px !important;
    padding-left: 0px !important;
    margin-right: auto;
    margin-left: auto;
}

/* --- Base Footer Container --- */
.cionet-footer {
    font-family: museo_sans300, sans-serif;
    line-height: 1.5;
    background-color: var(--color-main-bg);
    color: var(--color-text-white);
    text-align: left;
}

.CIONET-custom-container {
    padding-right: 15px !important;
    padding-left: 15px !important;
}

/* --- 1. Top Strip (The Split Header) --- */
.footer-top-strip {
    padding: 15px 0;
}

/* Left side: Subscribe Text & Form Container */
.subscribe-col {
    background-color: var(--color-dark-gray-subscribe);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 15px;
}

.subscribe-text {
    font-weight: bold;
    font-size: 1.15rem;
    color: var(--color-text-white);
    margin: 0 0 10px 0;
    text-align: center;
}

/* --- HubSpot Form Styling Overrides --- */

#hbspt-subscribe-form {
    /* 1. Ensure the form container doesn't exceed the wrapper's max width */
    width: 100%;
    max-width: 400px;
}

/* 2. Style the main form container to arrange input and button horizontally */
#hbspt-subscribe-form form {
    display: flex;
    gap: 0; /* Remove default spacing */
    width: 100%;
    margin-top: 0 !important;
}

/* 3. Style the input field/group */
#hbspt-subscribe-form .hs-form-field {
    flex-grow: 1; /* Input takes up available space */
    margin-bottom: 0 !important;
    padding-right: 0 !important;
}

#hbspt-subscribe-form input[type="email"] {
    /* Match your desired input style (Light Gray background, no border) */
    background-color: var(--color-form-bg) !important;
    color: #333 !important;
    border: none !important;
    padding: 8px 12px !important;
    height: 38px !important;
    border-radius: 0 !important;
}

/* 4. Style the submit button */
#hbspt-subscribe-form .hs-button {
    /* Match your desired button style (Light Gray background) */
    background-color: var(--color-form-bg) !important;
    color: #333 !important;
    border: none !important;
    font-weight: bold !important;
    padding: 8px 15px !important;
    height: 38px !important;
    width: auto !important;
    min-width: 100px; /* Give the button a fixed minimum width */
    border-radius: 0 !important;
}
/* --- NEW FORM STYLING --- */
{#.subscribe-form-wrapper {
    display: flex;
    width: 100%;
    max-width: 400px;
}

.subscribe-input {
    flex-grow: 1;
    padding: 8px 12px;
    border: none;
    background-color: var(--color-form-bg);
    color: #333;
    font-size: 0.9rem;
    height: 38px;
    border-radius: 0;
}

.subscribe-button {
    background-color: #df7b00;
    color: #333;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 8px 15px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    height: 38px;
    border-radius: 0;
    transition: background-color 0.2s;
}

.subscribe-button:hover {
    background-color: #cacaca;
}
#}
/* Right side: Social Icons */
.social-col {
    padding: 20px 15px !important;
}

/* --- 2. Main Navigation Content --- */
.footer-main-content {
    background-color: var(--color-main-bg);
    padding: 40px 0 30px 0;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-text-white);
    margin-bottom: 15px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 5px;
}

.footer-list a {
    color: var(--color-text-light);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-list a:hover {
    color: var(--color-text-white);
}

/* --- Social Icons (General Styling) --- */
.social_footer_ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.social_footer_ul li a {
    background-color: var(--color-text-white);
    color: var(--color-accent-orange) !important;
    padding: 6px;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.social_footer_ul li a:hover {
    background-color: var(--color-accent-orange);
    color: var(--color-text-white) !important;
}

/* --- 3. Bottom Copyright Bar --- */
.footer-bottom-bar {
    background-color: var(--color-bottom-bg);
    padding: 20px 0;
    text-align: center;
}

.copyright-text {
    color: var(--color-text-light);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.6;
}

.copyright-text a {
    color: var(--color-text-white);
    text-decoration: underline;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 767px) {
    /* --- Top Strip Mobile --- */
    .footer-top-strip .row {
        flex-direction: column;
    }
    #hbspt-subscribe-form {
    padding: 0 15px;
}
    .subscribe-col {
        width: 100%;
        text-align: center;
        align-items: center !important; /* Center form content */
        margin-bottom: 0;
    }
    
    .subscribe-form-wrapper {
        width: 90%;
        max-width: 350px;
        margin-bottom: 20px;
    }
    
    .subscribe-text {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .social-col {
        /* Ensure social icons are centered below the dark box */
        justify-content: center !important;
        padding-top: 10px; /* Adjust padding after subscription box */
        padding-bottom: 10px;
    }

    /* --- Navigation Columns Mobile --- */
    .footer-nav-row {
        text-align: left;
    }
    
    /* Ensure list items are left-aligned inside their columns */
    .footer-list {
        text-align: left;
    }
    
    /* Adjust alignment for 6-column split on small mobile devices */
    .footer-col:nth-child(2n+1) {
        padding-left: 15px; 
    }
}