/* ============================================================
   St. Xavier's College Clone — Footer (Premium)
   ============================================================ */

.main-footer {
    background: var(--gradient-dark);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-secondary);
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(196, 30, 58, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(27, 58, 92, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-top {
    padding: 5rem 0 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.footer-logo .logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-secondary);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.footer-logo .logo-x {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--white);
}

.footer-logo .logo-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.footer-logo .logo-subtitle {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 1px;
}

.footer-about {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
}

.footer-social a:hover {
    background: var(--gradient-secondary);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.35);
}

.footer-heading {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: 0.02em;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-normal);
    padding: 4px 0;
}

.footer-links a i {
    font-size: 0.55rem;
    transition: all var(--transition-normal);
    color: rgba(255, 255, 255, 0.3);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-links a:hover i {
    transform: translateX(3px);
    color: var(--secondary-color);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    font-size: 0.88rem;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition-fast);
}

.footer-contact li:hover {
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact li i {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 4px;
    min-width: 16px;
}

.footer-contact li span {
    line-height: 1.6;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 18px 0;
    font-size: 0.82rem;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}

/* ─── Back to Top Button ─── */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: -60px;
    width: 48px;
    height: 48px;
    background: var(--gradient-secondary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.35);
    transition: all var(--transition-normal);
    z-index: 99;
    font-size: 1.1rem;
}

.back-to-top.active {
    right: 30px;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.5);
}

/* Ripple animation ring */
.back-to-top::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(196, 30, 58, 0.3);
    animation: back-to-top-ring 2s infinite;
}

@keyframes back-to-top-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}
