/* University Frontend - Footer Styles */

.sf-footer {
    position: relative;
    overflow: hidden;
    color: white;
    padding: 0;
}

.o_footer_copyright {
    display: none !important;
}

.sf-footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    }
    50% {
        background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e293b 100%);
    }
}

.sf-footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.02;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.9) 1px, transparent 0);
    background-size: 40px 40px;
}

.sf-footer-content {
    position: relative;
    z-index: 1;
    padding: 30px 0 22px;
}

.sf-footer-grid {
    display: grid;
    grid-template-columns: minmax(160px, 0.8fr) minmax(250px, 1.15fr) minmax(280px, 1.2fr) minmax(170px, 0.9fr);
    gap: 28px;
    margin-bottom: 18px;
    align-items: start;
}

/* University Section */
.sf-footer-company {
    margin-bottom: 0;
    animation: fadeInUp 0.6s ease;
    max-width: 240px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sf-footer-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: all 0.4s ease;
}

.sf-footer-logo:hover {
    transform: rotate(360deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.sf-footer-company-name {
    font-size: 17px;
    font-weight: 800;
    color: white;
    margin: 0 0 6px 0;
    letter-spacing: -0.2px;
}

.sf-footer-company-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    margin: 12px 0 0;
    font-size: 14px;
    max-width: 220px;
}

.sf-footer-company-note {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    line-height: 1.5;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.sf-footer-section {
    animation: fadeInUp 0.6s ease 0.2s both;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.sf-footer-brand-socials {
    margin-top: 14px;
}

.sf-footer-section-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin: 0 0 12px 0;
}

.sf-footer-section-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.sf-footer-contact-list,
.sf-footer-link-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.sf-footer-contact-list a,
.sf-footer-link-list a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.3s ease, transform 0.3s ease;
}

.sf-footer-contact-list a:hover,
.sf-footer-link-list a:hover {
    color: #10b981;
    transform: translateX(3px);
}

.sf-footer-campus-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.sf-footer-campus-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.85;
    font-weight: 400;
}

.sf-footer-campus-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    min-width: 18px;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 2px;
}

.sf-footer-campus-item a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

.sf-footer-campus-item a:hover {
    color: #10b981;
}

.sf-footer-campus-item-address span:last-child {
    max-width: 100%;
}

.sf-footer-campus-item > span:last-child {
    display: block;
}

/* Newsletter */
.sf-footer-newsletter {
    animation: fadeInUp 0.7s ease 0.1s both;
}

.sf-footer-newsletter-label {
    font-weight: 700;
    font-size: 11px;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.sf-footer-newsletter-form {
    display: flex;
    gap: 6px;
}

.sf-footer-newsletter-input {
    flex: 1;
    padding: 9px 11px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
}

.sf-footer-newsletter-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.sf-footer-newsletter-btn {
    padding: 9px 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.sf-footer-newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.sf-footer-newsletter-btn:active {
    transform: translateY(0);
}

/* Office Sections */
.sf-footer-office {
    margin-bottom: 8px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.sf-footer-office:nth-child(3) {
    animation-delay: 0.3s;
}

.sf-footer-office:nth-child(4) {
    animation-delay: 0.4s;
}

.sf-footer-office-header {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.sf-footer-office:hover .sf-footer-office-header {
    transform: translateX(5px);
}

.sf-footer-office-flag {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sf-footer-office:hover .sf-footer-office-flag {
    transform: scale(1.1);
}

.sf-footer-office-title {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.sf-footer-office-details {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1.6;
}

.sf-footer-office-details > div {
    margin-bottom: 3px;
}

.sf-footer-office-details a {
    color: inherit !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sf-footer-office-details a:hover {
    color: #10b981;
}

.sf-footer-office-details a[href^="mailto"] {
    color: #10b981;
}

.sf-footer-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 6px;
    color: #25d366;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 6px;
}

.sf-footer-whatsapp:hover {
    background: rgba(37, 211, 102, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.sf-footer-whatsapp:active {
    transform: translateY(0);
}

/* Divider */
.sf-footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 14px 0 0;
}

/* Social Section */
.sf-footer-social {
    padding-bottom: 10px;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.sf-footer-social-links {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 0;
    flex-wrap: wrap;
    align-items: center;
}

.sf-footer-social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    position: relative;
}

.sf-footer-social-link::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.sf-footer-social-link:hover::before {
    opacity: 1;
}

.sf-footer-social-link:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.sf-footer-social-link:active {
    transform: translateY(-1px) scale(1);
}

/* Bottom Bar */
.sf-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 0 4px;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.sf-footer-bottom-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px 24px;
}

.sf-footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    justify-self: start;
}

.sf-footer-bottom-links {
    display: flex;
    gap: 14px;
    font-size: 13px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.sf-footer-attribution {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    justify-self: end;
}

.sf-footer-attribution-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.sf-footer-kola-link {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
    font-size: 0;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sf-footer-kola-link:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

.sf-footer-kola-logo {
    height: 24px;
    width: auto;
    display: block;
    object-fit: contain;
}

.sf-footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.sf-footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #10b981;
    transition: width 0.3s ease;
}

.sf-footer-bottom-links a:hover {
    color: #10b981;
}

.sf-footer-bottom-links a:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .sf-footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sf-footer-content {
        padding: 24px 0 16px;
    }
    
    .sf-footer-bottom-content {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .sf-footer-company {
        max-width: none;
    }

    .sf-footer-brand-socials {
        margin-top: 14px;
    }

    .sf-footer-copyright,
    .sf-footer-attribution {
        justify-self: center;
    }

    .sf-footer-attribution {
        justify-content: center;
    }
}
