/**
 * CUSTOM ADVANCED STYLING - FINAL PERFECT
 * Footer Redesign + Additional Premium Styles
 * 100% Mobile Optimized
 */

/* ==========================================
   FOOTER - BEAUTIFUL GRADIENT DESIGN
   ========================================== */
.footer {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #1e3a5f 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Decorative overlay */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(33, 150, 243, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Wave separator */
.footer::after {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"><path fill="%231e3a5f" d="M0,50 C360,100 1080,0 1440,50 L1440,100 L0,100 Z"/></svg>');
    background-size: cover;
}

.footer > .container {
    position: relative;
    z-index: 1;
}

/* Newsletter */
.newsletter-section {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form .input-group {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
}

.newsletter-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    background: white;
}

.newsletter-form .btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    font-weight: 600;
}

@media (max-width: 768px) {
    .newsletter-form .input-group {
        flex-direction: column;
        border-radius: 1rem;
    }
    
    .newsletter-form .form-control,
    .newsletter-form .btn {
        border-radius: 0.75rem;
        width: 100%;
    }
    
    .newsletter-form .btn {
        margin-top: 0.75rem;
    }
}

/* Logo Box - WHITE BACKGROUND */
.footer-about .d-inline-flex {
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.footer-about .d-inline-flex:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.footer-about .d-inline-flex strong {
    color: #1e3a5f;
    font-size: 1.1rem;
}

.footer-about .d-inline-flex small {
    color: #0056b3;
    font-weight: 500;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

/* Social Icons - GREEN HOVER */
.social-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
}

/* Badge */
.accreditation-badge .badge {
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* Footer Links */
.footer-links h5,
.footer-contact h5 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-links h5::after,
.footer-contact h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, transparent);
}

.footer-links ul li a,
.footer-contact ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-links ul li a:hover,
.footer-contact ul li a:hover {
    color: #4CAF50;
    padding-left: 8px;
}

.footer-contact ul li i {
    color: #4CAF50;
    margin-right: 0.75rem;
}

/* Copyright */
.copyright {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0 1rem;
    margin-top: 3rem;
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-meta a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-meta a:hover {
    color: #4CAF50;
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer::after {
        height: 50px;
        top: -25px;
    }
    
    .newsletter-section {
        padding: 2rem 0;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-meta a {
        display: block;
        margin-bottom: 0.5rem;
    }
}

/* ==========================================
   QUICK LINKS CARDS
   ========================================== */
.quick-link-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.quick-link-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.quick-link-card .icon-wrapper {
    animation: floating 3s ease-in-out infinite;
}

/* ==========================================
   PROGRAMS SECTION
   ========================================== */
.program-card {
    transition: all 0.4s ease;
}

.program-card:hover {
    transform: translateY(-12px);
}

.program-image {
    height: 220px;
    overflow: hidden;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.program-card:hover .program-image img {
    transform: scale(1.15);
}

.program-icon {
    opacity: 0;
    transition: opacity 0.4s;
}

.program-card:hover .program-icon {
    opacity: 1;
}

@media (max-width: 768px) {
    .program-image {
        height: 180px;
    }
}

/* ==========================================
   NEWS SECTION
   ========================================== */
.news-card {
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.news-image {
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .news-image {
        height: 180px;
    }
}

/* ==========================================
   ANNOUNCEMENTS
   ========================================== */
.announcement-item {
    transition: all 0.3s ease;
    border-left: 4px solid #0056b3;
    background: white;
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    margin-bottom: 1rem;
}

.announcement-item:hover {
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.announcement-item.important {
    border-left-color: #dc3545;
    background: linear-gradient(to right, #fff5f5, white 10%);
}

.announcement-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
}

.announcement-icon.important {
    background: linear-gradient(135deg, #dc3545, #bd2130);
    color: white;
    animation: pulse 2s infinite;
}

.announcement-icon.normal {
    background: linear-gradient(135deg, #0056b3, #003d82);
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.announcement-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.empty-announcements {
    background: white;
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.empty-announcements-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #adb5bd;
}

@media (max-width: 768px) {
    .announcement-item {
        padding: 1rem;
    }
    
    .announcement-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-premium {
    background: linear-gradient(135deg, #0056b3, #2196F3);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-premium::before,
.cta-premium::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
}

.cta-premium::before {
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
}

.cta-premium::after {
    bottom: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
}

@media (max-width: 768px) {
    .cta-premium {
        padding: 4rem 0;
    }
}

/* ==========================================
   RESPONSIVE UTILITIES
   ========================================== */
@media (max-width: 768px) {
    .mobile-center {
        text-align: center !important;
    }
    
    .mobile-hidden {
        display: none !important;
    }
}

/* ==========================================
   LOADING OVERLAY
   ========================================== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-custom {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================
   SMOOTH INTERACTIONS
   ========================================== */
* {
    -webkit-tap-highlight-color: transparent;
}

img {
    -webkit-user-drag: none;
    user-select: none;
}