/**
 * Medical Footer Styles (Enhanced UI/UX)
 * Brand: medicalcounseling.in
 */

/* ===================================
   Footer Section
   =================================== */
.medical-footer {
    background: linear-gradient(180deg, #0a2540 0%, #0F3D64 50%, #1a5280 100%);
    color: var(--pure-white);
    position: relative;
    overflow: hidden;
}

.medical-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

/* Footer Top - CTA Section */
.medical-footer-cta {
    background: var(--gradient-primary);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.medical-footer-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.medical-footer-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.medical-footer-cta-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--pure-white);
    margin-bottom: 16px;
}

.medical-footer-cta-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.medical-footer-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.medical-footer-cta-btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.medical-footer-cta-btn-primary {
    background: var(--pure-white);
    color: var(--medical-green);
}

.medical-footer-cta-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.medical-footer-cta-btn-secondary {
    background: transparent;
    color: var(--pure-white);
    border: 2px solid var(--pure-white);
}

.medical-footer-cta-btn-secondary:hover {
    background: var(--pure-white);
    color: var(--medical-green);
    transform: translateY(-4px);
}

/* Footer Main */
.medical-footer-main {
    padding: 70px 0 40px;
    position: relative;
    z-index: 2;
}

/* Footer Widget */
.medical-footer-widget {
    margin-bottom: 40px;
}

.medical-footer-widget-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--pure-white);
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 16px;
    display: inline-block;
}

.medical-footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--medical-green);
    border-radius: 2px;
}

/* Footer About */
.medical-footer-about {
    padding-right: 30px;
}

.medical-footer-logo {
    margin-bottom: 24px;
    display: inline-block;
}

.medical-footer-logo img {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.medical-footer-desc {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
}

/* Stats */
.medical-footer-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.medical-footer-stat {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.medical-footer-stat:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.medical-footer-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--medical-green);
    display: block;
    margin-bottom: 4px;
}

.medical-footer-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer Contact */
.medical-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.medical-footer-contact li {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 3px solid var(--medical-green);
    transition: all 0.3s ease;
}

.medical-footer-contact li:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(8px);
}

.medical-footer-contact li i {
    color: var(--medical-green);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.medical-footer-contact li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
    line-height: 1.6;
}

.medical-footer-contact li a:hover {
    color: var(--medical-green);
}

/* Footer Links */
.medical-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.medical-footer-links li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
}

.medical-footer-links li a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--medical-green);
    transition: width 0.3s ease;
}

.medical-footer-links li a:hover::before {
    width: 30px;
}

.medical-footer-links li a i {
    color: var(--medical-green);
    font-size: 10px;
    transition: transform 0.3s ease;
}

.medical-footer-links li a:hover {
    color: var(--pure-white);
    padding-left: 12px;
}

.medical-footer-links li a:hover i {
    transform: translateX(4px);
}

/* Social Links */
.medical-footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.medical-footer-social a {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.medical-footer-social a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--medical-green);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.medical-footer-social a i {
    position: relative;
    z-index: 1;
}

.medical-footer-social a:hover::before {
    transform: scale(1);
}

.medical-footer-social a:hover {
    border-color: var(--medical-green);
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(46, 139, 87, 0.3);
}

/* Footer Bottom */
.medical-footer-bottom {
    padding: 28px 0;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.medical-footer-copyright {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.medical-footer-copyright a {
    color: var(--medical-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.medical-footer-copyright a:hover {
    color: var(--pure-white);
}

.medical-footer-bottom-links {
    display: flex;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.medical-footer-bottom-links li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
}

.medical-footer-bottom-links li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--medical-green);
    transition: width 0.3s ease;
}

.medical-footer-bottom-links li a:hover {
    color: var(--pure-white);
}

.medical-footer-bottom-links li a:hover::after {
    width: 100%;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 991px) {
    .medical-footer-cta-title {
        font-size: 32px;
    }

    .medical-footer-main {
        padding: 60px 0 30px;
    }

    .medical-footer-about {
        padding-right: 0;
    }

    .medical-footer-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .medical-footer-cta {
        padding: 40px 0;
    }

    .medical-footer-cta-title {
        font-size: 28px;
    }

    .medical-footer-cta-desc {
        font-size: 16px;
    }

    .medical-footer-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .medical-footer-cta-btn {
        justify-content: center;
    }

    .medical-footer-main {
        padding: 50px 0 20px;
    }

    .medical-footer-widget-title {
        font-size: 20px;
    }

    .medical-footer-stats {
        grid-template-columns: 1fr;
    }

    .medical-footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .medical-footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.medical-footer-widget {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.medical-footer-widget:nth-child(1) {
    animation-delay: 0.1s;
}

.medical-footer-widget:nth-child(2) {
    animation-delay: 0.2s;
}

.medical-footer-widget:nth-child(3) {
    animation-delay: 0.3s;
}

.medical-footer-widget:nth-child(4) {
    animation-delay: 0.4s;
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.medical-footer-social a:hover i {
    animation: float 1s ease-in-out infinite;
}