/* Mentofy Footer Styles */
.site-footer {
    background-color: #1a2748;
    color: #ffffff;
    padding: 60px 0 0;
    font-family: inherit;
    margin-top: 60px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    z-index: 5;
    border-top: 2px solid rgba(33, 97, 251, 0.2);
    isolation: isolate;
    overflow: hidden;
}

/* Gradient overlay */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(78, 114, 198, 0.1), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Footer container */
.footer-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 2rem;
    margin: 0 auto;
    max-width: 100%;
}

.footer-content {
    margin-bottom: 40px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Footer grid layout */
.footer-primary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    width: 100%;
}

@media (min-width: 992px) {
    .footer-primary {
        grid-template-columns: 1fr 0.8fr 1.2fr;
        gap: 60px;
    }
}

/* Brand section */
.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    transition: all 0.25s ease;
}

.footer-logo:hover {
    filter: brightness(1.1);
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    max-width: 320px;
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
}

.social-link:hover {
    background-color: var(--primary, #2161fb);
    transform: translateY(-2px);
    color: #ffffff;
}

.social-link i {
    font-size: 16px;
    position: relative;
    z-index: 2;
}

/* Contact button */
.action-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    width: fit-content;
    min-width: 120px;
    background: transparent;
}

.btn-arrow {
    font-size: 16px;
    transition: all 0.25s ease;
    margin-left: 8px;
}

.contact-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: #ffffff;
}

.contact-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Section headings */
.footer-heading {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    display: inline-block;
    letter-spacing: 0.3px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary, #2161fb);
}

/* Navigation list */
.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 12px;
    line-height: 1.4;
}

.footer-nav-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
    display: inline-block;
    position: relative;
}

.footer-nav-list a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

/* Olympic Subscription highlight */
.olympiad-subscription-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #FFD700 !important;
    font-weight: 500;
}

.olympiad-subscription-link:hover {
    color: #FFF !important;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.6);
}

.highlight-pulse {
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #FFD700;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    70% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 0 0 8px rgba(255, 215, 0, 0);
    }
    100% {
        transform: translateY(-50%) scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

.new-badge {
    background-color: #FF4757;
    color: #FFF;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 9999px;
    margin-left: 6px;
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
}

/* Contact section */
.footer-contact {
    text-align: right;
}

.footer-contact .footer-heading {
    text-align: right;
    display: block;
}

.footer-contact .footer-heading::after {
    left: auto;
    right: 0;
}

.address-block {
    margin-bottom: 15px;
    margin-left: auto;
    text-align: right;
}

.address-block p {
    margin: 0 0 5px 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
}

.contact-details {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-item {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.contact-item span {
    font-size: 13px;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 2px;
    text-align: right;
}

.contact-item a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
    text-align: right;
}

.contact-item a:hover {
    color: #ffffff;
}

/* Newsletter section */
.footer-newsletter {
    width: 100%;
    margin-top: 20px;
    margin-left: auto;
}

.footer-newsletter .footer-heading {
    text-align: right;
}

.input-group {
    display: flex;
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.newsletter-input {
    flex: 1;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #ffffff;
    padding: 0 15px;
    font-size: 14px;
    transition: all 0.25s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

.submit-btn {
    height: 44px;
    background-color: var(--primary, #2161fb);
    color: #ffffff;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.submit-btn:hover {
    background-color: var(--primary-dark, #1a4ad2);
    transform: translateX(2px);
}

/* Footer bottom section */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s ease;
    padding: 5px 0;
}

.footer-link:hover {
    color: #ffffff;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    box-sizing: border-box;
    max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .footer-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 991px) {
    .site-footer {
        padding: 40px 0 0;
    }
    
    .footer-content {
        margin-bottom: 30px;
    }
    
    .footer-primary {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 40px;
    }
    
    .footer-newsletter .input-group {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .site-footer {
        padding: 30px 0 0;
        margin-top: 40px;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-bottom {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 15px;
        padding: 15px 0;
    }
    
    .footer-bottom-nav {
        justify-content: center;
        width: 100%;
        gap: 15px;
    }
    
    .copyright {
        text-align: center;
        width: 100%;
    }
    
    /* Maintain right alignment on mobile */
    .footer-contact,
    .footer-contact .footer-heading,
    .address-block,
    .address-block p,
    .contact-item,
    .contact-item span,
    .contact-item a,
    .footer-newsletter .footer-heading {
        text-align: right;
    }
    
    .contact-details,
    .contact-item {
        align-items: flex-end;
    }
}

@media (max-width: 575px) {
    .footer-bottom-nav {
        gap: 10px;
    }
    
    .footer-link {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-input {
        border-radius: 8px;
        border-right: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
    }
    
    .submit-btn {
        width: 100%;
        border-radius: 8px;
    }
}