/* ============================================
   ExamConnect Footer — ec-footer.css
   Brand: Teal #327b74, Navy #0F4C81, Amber #F59E0B
   ============================================ */

.ec-footer {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

/* ── Main footer section ── */
.ec-footer-main {
    background: #0F4C81;
    padding: 3.5rem 0 2.5rem;
}

.ec-footer-grid {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

/* ── Brand column ── */
.ec-footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    text-decoration: none;
}

.ec-footer-brand-logo img {
    max-width: 180px;
    height: auto;
}

.ec-footer-brand-fallback {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.ec-footer-brand-fallback .ec-f-icon {
    background: #327b74;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
}

.ec-footer-brand-fallback .ec-f-name span:first-child {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.ec-footer-brand-fallback .ec-f-name span:last-child {
    color: #F59E0B;
    font-size: 18px;
    font-weight: 600;
}

.ec-footer-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.8;
    margin: 0 0 22px;
}

/* ── Social icons ── */
.ec-footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ec-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
    font-size: 17px;
}

.ec-footer-social a:hover {
    background: #327b74;
    color: #fff;
    transform: translateY(-2px);
}

/* ── Column headings ── */
.ec-footer-heading {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 18px;
    padding-bottom: 10px;
    position: relative;
    display: inline-block;
}

.ec-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2.5px;
    background: #327b74;
    border-radius: 2px;
}

/* ── Link lists ── */
.ec-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ec-footer-links li {
    margin-bottom: 11px;
}

.ec-footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.ec-footer-links a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #327b74;
    border-bottom: 1.5px solid #327b74;
    transform: rotate(-45deg);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.ec-footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.ec-footer-links a:hover::before {
    border-color: #F59E0B;
    transform: rotate(-45deg) translateX(2px);
}

/* ── Contact items ── */
.ec-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.ec-footer-contact-item .ec-fc-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(50, 123, 116, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #327b74;
    font-size: 15px;
}

.ec-footer-contact-item span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    line-height: 1.6;
    padding-top: 5px;
}

.ec-footer-contact-item a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.ec-footer-contact-item a:hover {
    color: #F59E0B;
}

/* ── CTA button ── */
.ec-footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #327b74;
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 8px;
    transition: background 0.25s ease, transform 0.2s ease;
}

.ec-footer-cta:hover {
    background: #28635d;
    transform: translateY(-1px);
    color: #fff;
}

.ec-footer-cta i {
    font-size: 16px;
}

/* ── Bottom bar ── */
.ec-footer-bottom {
    background: #0a3a63;
    padding: 16px 0;
}

.ec-footer-bottom-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ec-footer-copyright {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
}

/* ── Payment badges ── */
.ec-footer-payments {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ec-footer-pay-badge {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ec-footer-pay-badge img {
    height: 20px;
    width: auto;
    object-fit: contain;
}

.ec-footer-pay-badge span {
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .ec-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .ec-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .ec-footer-main {
        padding: 2.5rem 0 2rem;
    }
    .ec-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    .ec-footer-payments {
        justify-content: center;
    }
}

/* ── Header menu normal case ── */
#header .nav-menu a,
.nav-menu a {
    text-transform: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* ── Footer text visibility fix ── */
#footer.ec-footer .ec-footer-heading {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
#footer.ec-footer .ec-footer-desc {
    color: rgba(255,255,255,0.65) !important;
    visibility: visible !important;
    opacity: 1 !important;
}
#footer.ec-footer .ec-footer-links a {
    color: rgba(255,255,255,0.6) !important;
}
#footer.ec-footer .ec-footer-links a:hover {
    color: #fff !important;
}
#footer.ec-footer .ec-footer-contact-item span,
#footer.ec-footer .ec-footer-contact-item a {
    color: rgba(255,255,255,0.65) !important;
}
#footer.ec-footer .ec-footer-copyright {
    color: rgba(255,255,255,0.45) !important;
}
#footer.ec-footer .ec-footer-pay-badge span {
    color: rgba(255,255,255,0.55) !important;
}
/* ── Logo border radius ── */
#footer.ec-footer .ec-footer-brand-logo img {
    max-width: 140px !important;
    border-radius: 12px !important;
    background: #fff !important;
    padding: 8px 12px !important;
}

/* ── Floating Start Free Test button — right side redesign ── */
.start-test-btn {
    position: fixed !important;
    left: auto !important;
    right: 24px !important;
    bottom: 80px !important;
    background: #327b74 !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(50,123,116,0.35) !important;
    z-index: 9999 !important;
    transition: all 0.3s ease !important;
    font-family: 'Poppins', sans-serif !important;
}
.start-test-btn:hover {
    background: #0F4C81 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 25px rgba(15,76,129,0.4) !important;
    color: #fff !important;
}
