/* ========== FOOTER ========== */
footer {
    background: linear-gradient(135deg, var(--plum-deep), var(--fuchsia-muted));
    color: var(--white);
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%23ffffff"/></svg>');
    background-size: cover;
    background-position: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}

.footer-column {
    flex: 1 1 200px;
    min-width: 180px;
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--golden-yellow);
    padding: 5px;
    background: var(--white);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
    transform: scale(1.05);
}

.footer-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
    color: var(--white);
}

.footer-logo-text span {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    display: block;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer-social {
    text-align: center; /* Center the heading */
    width: 100%; /* Take full width of column */
}

.footer-social h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center; /* Center the social links container */
    gap: 15px;
    width: 100%; /* Take full width */
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-fast);
    min-height: 44px;
    min-width: 44px;
    position: relative;
    overflow: hidden;
    margin: 0 auto; /* Center if alone */
}

/* If there's only one social link, center it specifically */
.social-links:only-child,
.social-links:has(.social-link:only-child) {
    justify-content: center;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--golden-yellow) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.3s ease;
    opacity: 0.2;
}

.social-link:hover::before {
    transform: scale(2);
}

.social-link:hover {
    background: var(--golden-yellow);
    color: var(--plum-deep);
    transform: translateY(-3px);
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
    min-height: 36px;
    font-size: 0.9rem;
}

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

.footer-links i {
    width: 20px;
    text-align: center;
}

.footer-links a[href^="tel:"],
.footer-links a[href^="mailto:"] {
    color: rgba(255, 255, 255, 0.9);
}

.footer-links a[href^="tel:"]:hover,
.footer-links a[href^="mailto:"]:hover {
    color: var(--golden-yellow);
}

/* Non-link footer items styling */
.footer-links li:not(:has(a)) {
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    font-size: 0.9rem;
    padding: 0;
    margin-bottom: 8px;
}

.footer-links li:not(:has(a)) i {
    width: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin-bottom: 30px;
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    width: 100%;
}

.copyright {
    flex: 1;
    min-width: 100%;
    text-align: center;
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.85rem;
}

.footer-legal a:hover {
    color: var(--golden-yellow);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--floral-pink), var(--lavender-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(200, 106, 165, 0.4);
    transition: all var(--transition-fast);
    z-index: 100;
    min-height: 44px;
    min-width: 44px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(200, 106, 165, 0.6);
    background: linear-gradient(135deg, var(--golden-yellow), var(--leaf-green));
}

/* ========== FOOTER ANIMATIONS ========== */
.footer-column .animate-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer-column.animate-left.animated .animate-item {
    opacity: 1;
    transform: translateX(0);
}

.footer-column .animate-item.delay-1 { transition-delay: 0.2s; }
.footer-column .animate-item.delay-2 { transition-delay: 0.4s; }
.footer-column .animate-item.delay-3 { transition-delay: 0.6s; }
.footer-column .animate-item.delay-4 { transition-delay: 0.8s; }

.footer-column .social-links { 
    display: flex; 
    gap: 15px; 
    justify-content: center; /* Center the social links */
    width: 100%;
}

.footer-column .social-links .social-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease, background-color 0.3s ease, color 0.3s ease;
}

.footer-column.animate-left.animated .social-links .social-link {
    opacity: 1;
    transform: translateY(0);
}

.footer-column.animate-left.animated .social-links .social-link:nth-child(1) { transition-delay: 0.9s; }
.footer-column.animate-left.animated .social-links .social-link:nth-child(2) { transition-delay: 1.0s; }
.footer-column.animate-left.animated .social-links .social-link:nth-child(3) { transition-delay: 1.1s; }
.footer-column.animate-left.animated .social-links .social-link:nth-child(4) { transition-delay: 1.2s; }

.footer-column .footer-links li.animate-item {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.footer-column.animate-left.animated .footer-links li.animate-item {
    opacity: 1;
    transform: translateY(0);
}

.footer-column .footer-links li.animate-item.delay-1 { transition-delay: 0.2s; }
.footer-column .footer-links li.animate-item.delay-2 { transition-delay: 0.3s; }
.footer-column .footer-links li.animate-item.delay-3 { transition-delay: 0.4s; }
.footer-column .footer-links li.animate-item.delay-4 { transition-delay: 0.5s; }
.footer-column .footer-links li.animate-item.delay-5 { transition-delay: 0.6s; }
.footer-column .footer-links li.animate-item.delay-6 { transition-delay: 0.7s; }

.footer-column h3.animate-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer-column.animate-left.animated h3.animate-item {
    opacity: 1;
    transform: translateX(0);
}

/* ========== FOOTER REGISTRATION STYLES ========== */
.footer-links li i.fa-id-card,
.footer-links li i.fa-certificate {
    color: var(--golden-yellow);
    transition: all 0.3s ease;
}

.footer-links li:hover i.fa-id-card,
.footer-links li:hover i.fa-certificate {
    transform: scale(1.1);
    color: var(--white);
}

.footer-links li:not(:has(a)) i.fa-id-card,
.footer-links li:not(:has(a)) i.fa-certificate {
    color: var(--golden-yellow);
}

/* Adjust animation delays for new items */
.footer-column .footer-links li.animate-item.delay-6 {
    transition-delay: 0.8s;
}

.footer-column .footer-links li.animate-item.delay-7 {
    transition-delay: 0.9s;
}

/* Make registration numbers stand out slightly */
.footer-links li:has(i.fa-id-card),
.footer-links li:has(i.fa-certificate) {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-links li:has(i.fa-id-card),
    .footer-links li:has(i.fa-certificate) {
        justify-content: center;
        text-align: center;
    }
}