/* Typical Footer CSS for Ahmad Foundation */
/* Modern and clean design for PC and Mobile */

/* Reset and Base Styles */
.ahmadi-footer * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Footer Container */
.ahmadi-footer {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: ltr;
    text-align: left;
    margin-top: 40px;
    background: #f8f9fa;
    color: #333;
}

.ahmadi-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Newsletter Section */
.ahmadi-footer .footer-newsletter {
    background: linear-gradient(135deg, #28a745, #20c997);
    padding: 40px 0;
    text-align: center;
}

.ahmadi-footer .newsletter-content h3 {
    color: white;
    font-size: 2em;
    margin-bottom: 15px;
    font-weight: 600;
}

.ahmadi-footer .newsletter-content p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1em;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ahmadi-footer .newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.ahmadi-footer .newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
}

.ahmadi-footer .newsletter-form input[type="email"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}

.ahmadi-footer .join-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ahmadi-footer .join-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Main Footer Content */
.ahmadi-footer .footer-main {
    background: #343a40;
    padding: 50px 0;
    color: white;
}

.ahmadi-footer .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.ahmadi-footer .footer-column h4 {
    color: #28a745;
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid #28a745;
    padding-bottom: 8px;
}

/* Company Info Column */
.ahmadi-footer .footer-company {
    text-align: left;
}

.ahmadi-footer .logo-container {
    background: white;
    border: 3px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.ahmadi-footer .logo-container h2 {
    color: #007bff;
    font-size: 1.5em;
    margin-bottom: 5px;
    font-weight: 700;
}

.ahmadi-footer .logo-container h3 {
    color: #6c757d;
    font-size: 1.1em;
    font-weight: 500;
}

.ahmadi-footer .platform-badge {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-align: center;
    font-weight: 600;
    display: inline-block;
}

/* Footer Links */
.ahmadi-footer .footer-links {
    list-style: none;
}

.ahmadi-footer .footer-links li {
    margin-bottom: 12px;
}

.ahmadi-footer .footer-links a {
    color: #dee2e6;
    text-decoration: none;
    font-size: 1em;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.ahmadi-footer .footer-links a:hover {
    color: #28a745;
    transform: translateX(5px);
}

/* Contact Info */
.ahmadi-footer .contact-info {
    margin-bottom: 25px;
}

.ahmadi-footer .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ahmadi-footer .contact-item i {
    color: #28a745;
    width: 18px;
}

.ahmadi-footer .contact-item a {
    color: #dee2e6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ahmadi-footer .contact-item a:hover {
    color: #28a745;
}

/* Center Column - Logo and Platform */
.ahmadi-footer .footer-center {
    text-align: center;
}

.ahmadi-footer .footer-logo {
    margin-bottom: 0;
}

.ahmadi-footer .logo-container {
    background: white;
    border: 3px solid #000;
    border-radius: 8px;
    padding: 20px;
    margin: 0 auto;
    max-width: 400px;
    transition: all 0.3s ease;
}

.ahmadi-footer .logo-text h2 {
    color: #4472C4;
    font-size: 1.6em;
    margin-bottom: 5px;
    font-weight: 700;
    text-align: center;
}

.ahmadi-footer .logo-text h3 {
    color: #4472C4;
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0;
}

/* Copyright Section */
.ahmadi-footer .footer-bottom {
    background: #212529;
    padding: 20px 0;
    border-top: 1px solid #495057;
}

.ahmadi-footer .copyright-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.ahmadi-footer .copyright-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ahmadi-footer .footer-logo-mini .logo-circle {
    width: 35px;
    height: 35px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2em;
}

.ahmadi-footer .logo-text-mini {
    color: #adb5bd;
    font-size: 0.9em;
    font-weight: 600;
}

.ahmadi-footer .copyright-center p {
    color: #adb5bd;
    font-size: 0.9em;
    margin: 0;
    text-align: center;
}

.ahmadi-footer .copyright-right .powered-by {
    color: #adb5bd;
    font-size: 0.9em;
}

.ahmadi-footer .copyright-right strong {
    color: #28a745;
}

/* Social Media at Bottom */
.ahmadi-footer .social-media-bottom {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #495057;
    text-align: center;
}

.ahmadi-footer .social-media-bottom .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.ahmadi-footer .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #495057;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ahmadi-footer .social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.2);
}

.ahmadi-footer .social-icon i {
    font-size: 1.4em;
}

/* Specific social media colors */
.ahmadi-footer .social-icon.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.ahmadi-footer .social-icon.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

.ahmadi-footer .social-icon.youtube:hover {
    background: #FF0000;
    border-color: #FF0000;
}

.ahmadi-footer .social-icon.twitter:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
}

.ahmadi-footer .social-icon.instagram:hover {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    border-color: #DD2A7B;
}

.ahmadi-footer .social-icon.snapchat:hover {
    background: #FFFC00;
    border-color: #FFFC00;
    color: black;
}

.ahmadi-footer .social-icon.tiktok:hover {
    background: #000000;
    border-color: #000000;
}

.ahmadi-footer .social-icon.telegram:hover {
    background: #0088CC;
    border-color: #0088CC;
}

.ahmadi-footer .social-icon.messenger:hover {
    background: #006AFF;
    border-color: #006AFF;
}

/* Contact Info */
.ahmadi-footer .contact-info {
    text-align: left;
}

.ahmadi-footer .contact-link {
    color: #E3F2FD;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1em;
    transition: color 0.3s ease;
}

.ahmadi-footer .contact-link:hover {
    color: white;
}

.ahmadi-footer .contact-link i {
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ahmadi-footer .container {
        padding: 0 15px;
    }
    
    .ahmadi-footer .footer-content {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 30px;
    }
    
    .ahmadi-footer .join-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .ahmadi-footer .email-subscription-form {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ahmadi-footer .footer-content {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 30px;
    }
    
    .ahmadi-footer .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .ahmadi-footer .newsletter-form input[type="email"] {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .ahmadi-footer .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .ahmadi-footer .footer-company {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .ahmadi-footer .logo-container {
        max-width: 400px;
        margin: 0 auto 20px;
    }
    
    .ahmadi-footer .platform-badge {
        margin: 0 auto;
    }
    
    .ahmadi-footer .copyright-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .ahmadi-footer .social-media-bottom .social-icons {
        gap: 12px;
    }
    
    .ahmadi-footer .newsletter-content h3 {
        font-size: 1.8em;
    }
    
    .ahmadi-footer .newsletter-content p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .ahmadi-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .ahmadi-footer .footer-newsletter {
        padding: 30px 0;
    }
    
    .ahmadi-footer .footer-main {
        padding: 40px 0;
    }
    
    .ahmadi-footer .newsletter-content h3 {
        font-size: 1.6em;
    }
    
    .ahmadi-footer .newsletter-form {
        max-width: 100%;
    }
    
    .ahmadi-footer .newsletter-form input[type="email"] {
        font-size: 0.9em;
        padding: 10px 15px;
    }
    
    .ahmadi-footer .join-btn {
        font-size: 0.9em;
        padding: 10px 20px;
    }
    
    .ahmadi-footer .logo-container {
        padding: 15px;
    }
    
    .ahmadi-footer .logo-container h2 {
        font-size: 1.3em;
    }
    
    .ahmadi-footer .logo-container h3 {
        font-size: 1em;
    }
    
    .ahmadi-footer .social-media-bottom .social-icons {
        gap: 10px;
    }
    
    .ahmadi-footer .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .ahmadi-footer .social-icon i {
        font-size: 1.2em;
    }
    
    .ahmadi-footer .social-media-bottom {
        margin-top: 20px;
        padding-top: 15px;
    }
}

@media (max-width: 480px) {
    .ahmadi-footer .footer-join-section {
        padding: 20px 0;
        border-radius: 0;
    }
    
    .ahmadi-footer .footer-main {
        padding: 30px 0;
    }
    
    .ahmadi-footer .footer-bottom {
        padding: 20px 0;
    }
    
    .ahmadi-footer .join-text h3 {
        font-size: 1.5em;
    }
    
    .ahmadi-footer .join-text p {
        font-size: 1em;
    }
    
    .ahmadi-footer .logo-text h2 {
        font-size: 1.5em;
    }
    
    .ahmadi-footer .logo-text h3 {
        font-size: 1.1em;
    }
    
    .ahmadi-footer .social-media {
        gap: 10px;
    }
    
    .ahmadi-footer .social-icon {
        width: 35px;
        height: 35px;
    }
}

/* RTL Support for English */
@media (max-width: 768px) {
    .ahmadi-footer {
        direction: ltr;
        text-align: left;
    }
    
    .ahmadi-footer .footer-links li {
        justify-content: flex-start;
    }
    
    .ahmadi-footer .footer-column {
        text-align: left;
    }
    
    .ahmadi-footer .footer-center {
        text-align: center;
    }
    
    .ahmadi-footer .footer-bottom-content {
        text-align: left;
    }
    
    .ahmadi-footer .copyright-section {
        text-align: left;
    }
}

/* Animation Effects */
.ahmadi-footer .footer-links li,
.ahmadi-footer .social-icon,
.ahmadi-footer .join-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ahmadi-footer .footer-links li:hover {
    transform: translateX(-8px);
}

.ahmadi-footer .social-icon:hover {
    transform: translateY(-5px) scale(1.1);
}

.ahmadi-footer .join-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

/* Hover Effects for Logo */
.ahmadi-footer .logo-container:hover,
.ahmadi-footer .platform-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* Focus States for Accessibility */
.ahmadi-footer .email-subscription-form input[type="email"]:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.ahmadi-footer .join-btn:focus,
.ahmadi-footer .social-icon:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Fade-in Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ahmadi-footer .fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Enhanced Hover Effects */
.ahmadi-footer .footer-links li {
    position: relative;
    overflow: hidden;
}

.ahmadi-footer .footer-links li::before {
    content: '';
    position: absolute;
    right: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: right 0.5s ease;
}

.ahmadi-footer .footer-links li:hover::before {
    right: 100%;
}

/* Loading States */
.ahmadi-footer .join-btn.loading {
    position: relative;
    color: transparent;
}

.ahmadi-footer .join-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .ahmadi-footer {
        display: none;
    }
}
