/* ==========================
   ELITE GLOBAL ENERGY — FOOTER DESIGN SYSTEM STYLING
   ========================== */

.site-footer,
[data-row="footer"],
.ct-footer,
.ct-footer-container {
    background-color: var(--primary-dark) !important;
    color: var(--text-light) !important;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-md);
}

.footer-widget-content {
    font-family: var(--body-font);
    color: var(--text-light);
    font-size: var(--fs-sm);
    line-height: var(--lh-body);
    margin-top:20px !important;
}

.footer-widget-content h4 {
    color: var(--white) !important;
    font-family: var(--heading-font);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-sm);
    letter-spacing: var(--ls-heading);
    position: relative;
}

/* Accent line under headings using your secondary green color */
.footer-widget-content h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--secondary) !important;
    margin-top: var(--space-xs);
}

.footer-widget-content p {
    color: var(--text-light);
    margin-bottom: var(--space-sm);
    line-height: var(--lh-body);
    max-width: 100%;
}

/* Links & Hover Effects */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary) !important;
    transform: translateX(4px);
}

/* Contact Lists & Icons */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-md) 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: var(--space-sm);
    color: var(--text-light);
}

.footer-contact-list strong {
    color: var(--white);
    font-family: var(--heading-font);
    font-weight: var(--fw-semibold);
}

.footer-contact-list svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    fill: var(--secondary) !important;
    margin-top: 4px;
}

.footer-contact-list a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact-list a:hover {
    color: var(--secondary) !important;
}

/* Copyright Bottom Bar */
.site-footer .ct-footer-copyright, 
.site-footer [data-row="bottom"] {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-top: var(--space-lg);
    padding-top: var(--space-sm);
    color: var(--text-light) !important;
    font-size: var(--fs-xs);
}
/* ==========================
   FORCED 3-COLUMN FOOTER LAYOUT
   ========================== */

/* Target Blocksy's exact container-fluid wrapper in the footer top row */
.ct-footer [data-row="top"] > .ct-container-fluid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* Forces 3 distinct columns side by side */
    gap: var(--space-lg) !important;
    align-items: start !important;
}

/* Map each specific widget area explicitly to its grid column sequence */
.ct-footer [data-column="widget-area-1"] {
    grid-column: 1 !important;
}

.ct-footer [data-column="widget-area-3"] {
    grid-column: 2 !important;
}

.ct-footer [data-column="widget-area-2"] {
    grid-column: 3 !important;
}

/* Ensure data-column and internal widgets don't break the layout */
.ct-footer [data-row="top"] [data-column] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.ct-footer [data-row="top"] .widget {
    width: 100% !important;
    margin: 0 !important;
}

/* Responsive Grid Adaptation for Tablets and Mobiles */
@media (max-width: 991px) {
    .ct-footer [data-row="top"] > .ct-container-fluid {
        grid-template-columns: 1fr !important;
        gap: var(--space-md) !important;
    }
    
    .ct-footer [data-column="widget-area-1"],
    .ct-footer [data-column="widget-area-3"],
    .ct-footer [data-column="widget-area-2"] {
        grid-column: auto !important;
    }
}


/* Align the headings of column 2 and column 3 with column 1 */
.ct-footer [data-column="widget-area-3"],
.ct-footer [data-column="widget-area-2"] {
    padding-top: 0 !important; /* Removes any theme default top padding */
}

/* If you want them pushed down slightly or matched precisely with the main title block */
.ct-footer [data-column="widget-area-3"] .footer-widget-content,
.ct-footer [data-column="widget-area-2"] .footer-widget-content {
    margin-top: 40px; 
}