footer {
    background-size: cover; background-position: center;
    position: relative; padding: 35px 0 20px;
}
footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(180deg, rgba(242, 222, 26, 0.75) 0%, rgba(27, 127, 27, 0.85) 60%), url('/assets/img/color-bg.jpg');
    background-size: cover; background-position: center; background-repeat: no-repeat;
    z-index: 0;
}
footer .container { position: relative; z-index: 1; }
.footer-logo h3 {
    color: white; font-size: 18px; font-weight: 700;
    margin-bottom: 8px; line-height: 1.4;
}
.connect-with h4, .widget-title h3 {
    color: white; font-size: 16px; font-weight: 700;
    margin-bottom: 12px; position: relative; padding-bottom: 8px;
}
.connect-with h4::after, .widget-title h3::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 40px; height: 2px;
    background: #f2de1a;
    border-radius: 2px;
}
.connect-with .social-media {
    display: flex; gap: 8px; flex-wrap: wrap;
}
.connect-with .social-media li a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: all 0.3s;
}
.connect-with .social-media li a:hover {
    background: linear-gradient(135deg, #f2de1a, #1b7f1b);
    border-color: #1b7f1b;
}
.widget-title p, .widget-title ul li {
    color: rgba(255,255,255,0.8); line-height: 1.5;
}
.widget-title ul, .footer-compact-list { 
    list-style: none; padding: 0; margin: 0; 
}

/* 3-3 Grid Layout for Footer Links (2 rows × 3 columns) */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 8px 12px;
    width: 100%;
}
.footer-links-grid a {
    color: rgba(255,255,255,0.8); 
    text-decoration: none;
    transition: all 0.3s; 
    font-size: 14px;
    padding: 4px 0;
    display: block;
    text-align: center;
}
.footer-links-grid a:hover { 
    color: white; 
    transform: translateY(-2px);
}

/* Compact Contact Info */
.contact-info-compact {
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap;
    align-items: center;
}
.contact-item {
    display: flex; 
    align-items: center; 
    gap: 8px;
}
.contact-item i {
    color: #f2de1a; 
    font-size: 16px;
    min-width: 20px;
}
.contact-item a {
    color: rgba(255,255,255,0.8); 
    text-decoration: none;
    transition: color 0.3s; 
    font-size: 14px;
}
.contact-item a:hover { color: white; }

#progress {
    position: fixed; bottom: 30px; right: 30px;
    width: 50px; height: 50px; background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    transition: all 0.3s; z-index: 1000; opacity: 0; pointer-events: none;
}
#progress.active { opacity: 1; pointer-events: all; }
#progress:hover { transform: scale(1.1); }
#progress-value { color: white; font-size: 18px; }

/* Mobile Optimization */
@media (max-width: 768px) {
    footer { padding: 25px 0 15px; }
    .footer-logo h3 { font-size: 16px; margin-bottom: 6px; }
    .widget-title h3 { font-size: 14px; margin-bottom: 10px; }
    .footer-links-grid { 
        gap: 6px 8px;
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-links-grid a, .contact-item a { font-size: 12px; }
    .contact-info-compact { gap: 15px; }
    .connect-with .social-media li a { width: 32px; height: 32px; }
}

/* Extra small devices */
@media (max-width: 480px) {
    .footer-links-grid { 
        gap: 5px 6px;
        font-size: 11px;
    }
    .footer-links-grid a { font-size: 11px; }
}
.search-popup {
    backdrop-filter: blur(12px);
    background: rgba(26, 32, 44, 0.95);
}
.search-popup .close-search {
    background: linear-gradient(135deg, #f2de1a, #1b7f1b);
    border: none; width: 50px; height: 50px; border-radius: 50%;
    box-shadow: 0 6px 20px rgba(27, 127, 27, 0.35);
    transition: all 0.3s;
}
.search-popup .close-search:hover {
    transform: rotate(90deg) scale(1.1);
}
.search-popup .form-group input {
    border-radius: 14px; padding: 18px 24px;
    font-size: 18px; border: 2px solid rgba(27, 127, 27, 0.3);
    background: rgba(255,255,255,0.95);
    transition: all 0.3s;
}
.search-popup .form-group input:focus {
    border-color: #1b7f1b;
    box-shadow: 0 0 0 4px rgba(27, 127, 27, 0.2);
}
.search-popup .form-group button {
    background: linear-gradient(135deg, #f2de1a, #1b7f1b);
    border: none; border-radius: 12px;
    padding: 18px 28px; transition: all 0.3s;
}
.search-popup .form-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 127, 27, 0.35);}
.search-popup {
    backdrop-filter: blur(12px);
    background: rgba(26, 32, 44, 0.95);
}
.search-popup .close-search {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none; width: 50px; height: 50px; border-radius: 50%;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
}
.search-popup .close-search:hover {
    transform: rotate(90deg) scale(1.1);
}
.search-popup .form-group input {
    border-radius: 14px; padding: 18px 24px;
    font-size: 18px; border: 2px solid rgba(102, 126, 234, 0.3);
    background: rgba(255,255,255,0.95);
    transition: all 0.3s;
}
.search-popup .form-group input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}
.search-popup .form-group button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none; border-radius: 12px;
    padding: 18px 28px; transition: all 0.3s;
}
.search-popup .form-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}