/* University Frontend - Footer Styles */

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

.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: 28px 0 20px;
}

.sf-footer-grid {
    display: grid;
    grid-template-columns: 1.1fr repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 14px;
}

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

@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.5;
    margin: 0 0 12px 0;
    font-size: 13px;
}

/* 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: 12px 0 10px;
}

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

.sf-footer-social-links {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-bottom: 12px;
}

.sf-footer-social-link {
    width: 34px;
    height: 34px;
    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: 10px 0;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.sf-footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.sf-footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.sf-footer-bottom-links {
    display: flex;
    gap: 14px;
    font-size: 11px;
}

.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 {
        flex-direction: column;
        text-align: center;
    }
}
