/* =====================================================================
   Jagan Nath University — Site footer (light version)
   Location: wwwroot/assets/css/footer.css
   Light tint of the brand colour #CB4C06, dark warm text, brand accents.
   Everything is scoped to .ju-footer so it overrides the old
   "footer ..." theme rules without !important.
   ===================================================================== */

.ju-footer {
    --f-brand: #CB4C06;       /* accents, icons, top border           */
    --f-brand-dark: #A33D05;  /* link hover (readable on the tint)     */
    --f-bg: #FDF1E9;          /* light tint of #CB4C06                 */
    --f-bg-deep: #F9DCC8;     /* slightly deeper tint for bottom bar   */
    --f-heading: #642503;     /* dark brand shade for headings         */
    --f-text: #3D1702;        /* warm dark text, high contrast         */
    --f-soft: #6B5244;        /* secondary text                        */
    --f-line: #F3CDB4;        /* hairlines                             */

    margin: 0;
    padding: 0;
    border: 0;
    border-top: 4px solid var(--f-brand);
    background: var(--f-bg);
    color: var(--f-text);
    font-size: .95rem;
    line-height: 1.6;
    text-align: left;
}

/* ---------- Main area ---------- */
.ju-footer .ju-footer__main {
    padding-top: 3rem;
    padding-bottom: 2.25rem;
}

.ju-footer .ju-footer__logo {
    display: block;
    width: auto;
    max-width: 180px;
    height: auto;
    margin: 0 0 1rem;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--f-line);
    border-radius: 10px;
}

.ju-footer .ju-footer__name {
    margin: 0 0 .5rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--f-heading);
}

.ju-footer .ju-footer__address {
    margin: 0;
    font-style: normal;
    color: var(--f-soft);
}

/* Column headings */
.ju-footer .ju-footer__title {
    position: relative;
    margin: 0 0 1rem;
    padding: 0 0 .6rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--f-heading);
}

.ju-footer .ju-footer__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--f-brand);
}

/* Link lists */
.ju-footer .ju-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ju-footer .ju-footer__links li {
    margin: 0 0 .55rem;
    padding: 0;
    background: none;
}

.ju-footer .ju-footer__links li::before {
    content: none;
}

.ju-footer a {
    color: var(--f-text);
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}

.ju-footer .ju-footer__links a:hover,
.ju-footer .ju-footer__legal a:hover {
    color: var(--f-brand-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ju-footer a:focus-visible {
    outline: 2px solid var(--f-brand);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------- Social row ---------- */
.ju-footer .ju-footer__social-wrap {
    border-top: 1px solid var(--f-line);
}

.ju-footer .ju-footer__social {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin: 0;
    padding: 1.25rem 0;
}

.ju-footer .ju-footer__social li {
    margin: 0;
    padding: 0;
}

.ju-footer .ju-footer__social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--f-brand);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
}

.ju-footer .ju-footer__social a:hover {
    background: var(--f-brand-dark);
    color: #fff;
}

/* ---------- Bottom bar ---------- */
.ju-footer .ju-footer__bottom {
    background: var(--f-bg-deep);
    color: var(--f-heading);
    font-size: .875rem;
}

.ju-footer .ju-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
    padding-top: .9rem;
    padding-bottom: .9rem;
}

.ju-footer .ju-footer__copy {
    margin: 0;
}

.ju-footer .ju-footer__legal {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.ju-footer .ju-footer__legal li + li::before {
    content: "|";
    margin: 0 .6rem;
    opacity: .5;
}

.ju-footer .ju-footer__legal a {
    color: var(--f-heading);
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .ju-footer .ju-footer__main {
        padding-top: 2.25rem;
        padding-bottom: 1.5rem;
        text-align: center;
    }

    .ju-footer .ju-footer__logo {
        margin-left: auto;
        margin-right: auto;
    }

    .ju-footer .ju-footer__title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .ju-footer .ju-footer__bottom-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .ju-footer .ju-footer__legal {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ju-footer a {
        transition: none;
    }
}
