/* ==========================================================================
   JIM Student Theme — Footer Component
   ========================================================================== */

.jim-footer {
    background: var(--jim-navy-deep);
    color: rgba(255, 255, 255, 0.85);
    font-size: .875rem;
    position: relative;
    border-top: 4px solid var(--jim-teal);
}

.jim-footer__main {
    padding: var(--jim-sp-12) 0 var(--jim-sp-10);
}

.jim-footer__inner {
    max-width: var(--jim-max-width);
    margin-inline: auto;
    padding-inline: var(--jim-content-padding);
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
    gap: var(--jim-sp-8);
}

/* Brand Column */
.jim-footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--jim-sp-4);
}

.jim-footer__logo-group {
    display: flex;
    align-items: center;
    gap: var(--jim-sp-3);
    text-decoration: none;
    color: var(--jim-white);
}

.jim-footer__logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.jim-footer__brand-text {
    display: flex;
    flex-direction: column;
}

.jim-footer__brand-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--jim-white);
    letter-spacing: .02em;
    line-height: 1.2;
}

.jim-footer__brand-sub {
    font-size: .75rem;
    color: var(--jim-mint);
    font-weight: 600;
}

.jim-footer__desc {
    font-size: .8125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-width: 380px;
}

.jim-footer__contact {
    display: flex;
    align-items: center;
    gap: var(--jim-sp-3);
    margin-top: var(--jim-sp-2);
}

.jim-footer__contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--jim-sp-2);
    color: var(--jim-mint);
    text-decoration: none;
    font-size: .8125rem;
    transition: color var(--jim-duration) var(--jim-ease);
}

.jim-footer__contact-link:hover {
    color: var(--jim-white);
    text-decoration: underline;
}

.jim-footer__contact-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Navigation Columns */
.jim-footer__col {
    display: flex;
    flex-direction: column;
    gap: var(--jim-sp-3);
}

.jim-footer__col-title {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--jim-white);
    margin: 0 0 var(--jim-sp-2);
    position: relative;
    padding-bottom: var(--jim-sp-2);
}

.jim-footer__col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--jim-teal);
    border-radius: 1px;
}

.jim-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--jim-sp-2);
}

.jim-footer__list a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: .8125rem;
    transition: all var(--jim-duration) var(--jim-ease);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.jim-footer__list a:hover {
    color: var(--jim-white);
    transform: translateX(3px);
}

/* Bottom Bar */
.jim-footer__bottom {
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--jim-sp-4) 0;
}

.jim-footer__bottom-inner {
    max-width: var(--jim-max-width);
    margin-inline: auto;
    padding-inline: var(--jim-content-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--jim-sp-4);
    font-size: .75rem;
    color: rgba(255, 255, 255, 0.6);
}

.jim-footer__bottom-inner p {
    margin: 0;
}

.jim-footer__bottom-inner a {
    color: var(--jim-mint);
    text-decoration: none;
}

.jim-footer__bottom-inner a:hover {
    text-decoration: underline;
}

/* Back to top button */
.jim-back-to-top {
    position: fixed;
    bottom: var(--jim-sp-6);
    right: var(--jim-sp-6);
    width: 44px;
    height: 44px;
    background: var(--jim-teal);
    color: var(--jim-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--jim-shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--jim-duration) var(--jim-ease);
    z-index: 100;
}

.jim-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.jim-back-to-top:hover {
    background: var(--jim-teal-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.jim-back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
}
