/* Mobile-specific fixes for Homepage to match Income Tax Filing page */
/* Apply consistent header and footer styling on mobile devices */

@media (max-width: 768px) {
    /* Header fixes to match Income Tax Filing page */
    .header {
        position: relative !important;
        z-index: 100 !important;
        background: white !important;
        padding: 0.5rem 0 !important;
        width: 100% !important;
        overflow: visible !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
        min-height: 100px !important;
        margin-top: 0 !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    }

    .header .container {
        padding: 0 1rem !important;
        margin: 0 auto !important;
        height: 100px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .nav-brand {
        display: flex !important;
        align-items: center !important;
        margin-right: auto !important;
        max-width: 60% !important;
    }

    .nav-brand .logo {
        height: 85px !important;
        width: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 200px !important;
        z-index: 10001 !important;
    }

    /* Show both Sign In and Book Your Appointment buttons */
    .mobile-header-buttons {
        display: flex !important;
        gap: 0.4rem !important;
        align-items: center !important;
    }

    .mobile-header-buttons .mobile-signin-btn {
        display: inline-block !important;
        background: transparent !important;
        color: #3b82f6 !important;
        border: 1px solid #3b82f6 !important;
        padding: 0.4rem 0.6rem !important;
        border-radius: 4px !important;
        font-weight: 500 !important;
        font-size: 0.75rem !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-header-buttons .mobile-signin-btn:hover {
        background: #3b82f6 !important;
        color: white !important;
    }

    .mobile-header-buttons .mobile-appointment-btn {
        display: inline-block !important;
        background: #16a34a !important;
        color: white !important;
        border: 1px solid #16a34a !important;
        padding: 0.4rem 0.6rem !important;
        border-radius: 4px !important;
        font-weight: 500 !important;
        font-size: 0.75rem !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-header-buttons .mobile-appointment-btn:hover {
        background: #15803d !important;
    }

    .mobile-appointment-btn:active {
        transform: scale(0.98) !important;
        background: #14532d !important;
    }

    /* Ensure all appointment modal elements are visible when active */
    .appointment-modal-overlay[data-modal-active="true"],
    .appointment-modal-overlay[data-force-open="true"],
    #appointmentModal[data-modal-active="true"],
    #appointmentModal[data-force-open="true"] {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 99999 !important;
    }

    /* Prevent mobile layout from interfering with appointment modals */
    body.homepage .appointment-modal-overlay,
    body.homepage #appointmentModal {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(4px) !important;
        z-index: 99999 !important;
    }

    /* Hide desktop navigation elements */
    .nav-menu,
    .nav-actions,
    .mobile-menu-toggle {
        display: none !important;
    }

    /* Footer fixes to match Income Tax Filing page */
    .footer {
        display: block !important;
        padding: 0rem 0 !important;
        background: #1f2937 !important;
        color: white !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 100 !important;
        margin-top: 1rem !important;
        width: 100% !important;
        clear: both !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
        min-height: 160px !important;
    }

    .footer .container {
        padding: 0 0rem !important;
    }

    .footer-section {
        text-align: left !important;
        max-width: 100% !important;
    }

    /* Mobile footer - Clean grid layout with equal spacing */
    .footer-content {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto !important;
        gap: 0 !important;
        padding: 1.5rem 1.2rem !important;
        position: relative !important;
    }

    /* Row 1: Logo (left) | Apply Now Button (right) */
    .footer-section:first-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        align-items: center !important;
        padding: 1rem 0 !important;
        border-bottom: 1px solid #4a5568 !important;
    }

    .footer-logo {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.8rem !important;
        cursor: pointer !important;
        grid-column: 1 !important;
    }

    .footer-logo img {
        width: 60px !important;
        height: 60px !important;
        border-radius: 12px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .footer-logo span {
        color: white !important;
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        display: block !important;
    }

    /* Hide description text */
    .footer-section:first-child p {
        display: none !important;
    }

    /* Apply Now button positioned on right */
    .footer-section:first-child .btn-primary {
        display: inline-block !important;
        background: #16a34a !important;
        color: white !important;
        padding: 0.75rem 1.5rem !important;
        border-radius: 8px !important;
        text-decoration: none !important;
        font-weight: 700 !important;
        margin: 0 !important;
        width: auto !important;
        grid-column: 2 !important;
        justify-self: center !important;
    }

    .footer-section:first-child .btn-primary:hover {
        background: #15803d !important;
    }

    /* Hide contact info from first section */
    .footer-section:first-child .footer-contact {
        display: none !important;
    }

    /* Row 2: Contact Us (left) | Follow-Us (right) */
    .footer-section:nth-child(2) {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        grid-column: 1 !important;
        grid-row: 2 !important;
        border-right: 1px solid #4a5568 !important;
        padding: 1rem 1rem 1rem 0 !important;
    }

    .footer-section:nth-child(2) .footer-contact {
        display: block !important;
        margin-bottom: 0 !important;
    }

    .footer-section:nth-child(2) .footer-contact h4 {
        color: white !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        margin-bottom: 0.75rem !important;
    }

    .footer-section:nth-child(2) .footer-contact p {
        color: white !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }

    /* Hide social links from second section */
    .footer-section:nth-child(2) > h4:not(.footer-contact h4),
    .footer-section:nth-child(2) > .social-links {
        display: none !important;
    }

    /* Follow-Us column (right side of row 2) */
    .footer-follow-us {
        grid-column: 2 !important;
        grid-row: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 1rem 0 1rem 1rem !important;
    }

    .footer-follow-us h4 {
        color: white !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        margin-bottom: 1rem !important;
    }

    .footer-follow-us .social-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
        margin-top: 0 !important;
    }

    .footer-follow-us .social-links a {
        color: white !important;
        font-size: 1.3rem !important;
        transition: color 0.3s !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px !important;
        text-decoration: none !important;
    }

    .footer-follow-us .social-links a:hover {
        color: #3b82f6 !important;
        background: rgba(59, 130, 246, 0.2) !important;
    }

    /* Hide the duplicate Follow-Us sections */
    .footer-follow-us-full {
        display: none !important;
    }

    /* Hide desktop-only sections on mobile */
    .footer-section:nth-child(4),
    .footer-section:nth-child(5) {
        display: none !important;
    }
    
    /* Hide reCAPTCHA section on mobile for LAP forms */
    .recaptcha-group,
    .g-recaptcha {
        display: none !important;
    }

    /* Prevent empty popups from appearing on mobile homepage - but NEVER login modals */
    .modal:empty:not(#loginModal):not(.login-modal-overlay),
    .popup:empty,
    .modal-overlay:empty:not(.login-modal-overlay),
    .popup-overlay:empty {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Hide auto-opening modals but PRESERVE login modal functionality */
    body.homepage .modal:not(#loginModal):not(.login-modal-overlay):not([data-force-open="true"]):not([data-modal-active="true"]) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Ensure login modal is NEVER affected by homepage prevention rules */
    #loginModal,
    .login-modal-overlay {
        display: none; /* Default hidden state */
    }

    /* When login modal is active, show it properly */
    #loginModal[style*="display: block"],
    #loginModal[style*="display: flex"],
    .login-modal-overlay[style*="display: block"],
    .login-modal-overlay[style*="display: flex"] {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(4px) !important;
    }

    /* Footer bottom - keep copyright visible at bottom */
    .footer-bottom {
        display: block !important;
        border-top: 1px solid #4a5568 !important;
        padding-top: 1rem !important;
        margin-top: 1rem !important;
        text-align: center !important;
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }

    .footer-copyright {
        color: white !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
    }

    .footer-copyright p {
        color: white !important;
        font-weight: 600 !important;
        margin: 0 !important;
    }

    /* Mobile modal styling fixes */
    .modal {
        display: none;
        position: fixed !important;
        z-index: 10000 !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-color: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(4px) !important;
        overflow: auto !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }

    .modal[style*="display: flex"] {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Appointment modal overlay styling */
    .appointment-modal-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.6) !important;
        backdrop-filter: blur(4px) !important;
        z-index: 10000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow-y: auto !important;
        padding: 20px !important;
    }

    .appointment-modal-content {
        width: 90% !important;
        height: 80vh !important;
        max-width: 500px !important;
        max-height: 80vh !important;
        min-height: 400px !important;
        border: none !important;
        border-radius: 16px !important;
        background: white !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
        margin: auto !important;
        display: block !important;
        position: relative !important;
    }

    .appointment-close {
        position: absolute !important;
        top: 10px !important;
        right: 15px !important;
        color: #666 !important;
        font-size: 24px !important;
        font-weight: bold !important;
        cursor: pointer !important;
        z-index: 1000 !important;
        width: 30px !important;
        height: 30px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.9) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    .appointment-close:hover {
        background: rgba(255, 255, 255, 1) !important;
        color: #333 !important;
    }

    /* Login modal overlay styling - ensure proper visibility and no homepage interference */
    .login-modal-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.6) !important;
        z-index: 10000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow-y: auto !important;
        padding: 20px !important;
    }

    /* Ensure login modal content stays above everything */
    .login-modal-content {
        position: relative !important;
        z-index: 10001 !important;
        background: white !important;
        border-radius: 16px !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
        max-width: 400px !important;
        width: 90% !important;
        padding: 2rem !important;
    }

    /* Login close button positioning */
    .login-close {
        position: absolute !important;
        top: 1rem !important;
        right: 1rem !important;
        font-size: 1.5rem !important;
        cursor: pointer !important;
        color: #666 !important;
        z-index: 10002 !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border-radius: 50% !important;
        width: 30px !important;
        height: 30px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .login-modal-content {
        width: 90% !important;
        max-width: 400px !important;
        min-height: 300px !important;
        border: none !important;
        border-radius: 16px !important;
        background: white !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
        margin: auto !important;
        display: block !important;
        position: relative !important;
        padding: 2rem !important;
    }

    .login-close {
        position: absolute !important;
        top: 10px !important;
        right: 15px !important;
        color: #666 !important;
        font-size: 24px !important;
        font-weight: bold !important;
        cursor: pointer !important;
        z-index: 1000 !important;
        width: 30px !important;
        height: 30px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.9) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    .login-close:hover {
        background: rgba(255, 255, 255, 1) !important;
        color: #333 !important;
    }

    .login-form-container h3 {
        text-align: center !important;
        margin-bottom: 1rem !important;
        color: #1a365d !important;
        font-size: 1.5rem !important;
    }

    .login-form-container p {
        text-align: center !important;
        margin-bottom: 1.5rem !important;
        color: #666 !important;
        font-size: 0.9rem !important;
    }

    .google-login-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        border: 1px solid #d1d5db !important;
        border-radius: 8px !important;
        background: white !important;
        color: #374151 !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        transition: all 0.2s !important;
    }

    .google-login-btn:hover {
        background: #f9fafb !important;
        border-color: #9ca3af !important;
    }

    .modal-content {
        position: relative !important;
        background: white !important;
        width: 95% !important;
        max-width: 500px !important;
        max-height: 90vh !important;
        border-radius: 16px !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .modal-left {
        flex: 1 !important;
        padding: 1.5rem !important;
        overflow-y: auto !important;
    }

    .modal-right {
        display: none !important;
    }

    .close {
        position: absolute !important;
        top: 15px !important;
        right: 20px !important;
        color: #666 !important;
        font-size: 28px !important;
        font-weight: bold !important;
        cursor: pointer !important;
        z-index: 1000 !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.9) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    .close:hover {
        background: rgba(255, 255, 255, 1) !important;
        color: #333 !important;
    }

    /* Login modal specific styles */
    .login-form {
        width: 100% !important;
    }

    .form-group {
        margin-bottom: 1.5rem !important;
    }

    .form-group label {
        display: block !important;
        margin-bottom: 0.5rem !important;
        font-weight: 600 !important;
        color: #374151 !important;
    }

    .form-group input {
        width: 100% !important;
        padding: 0.75rem !important;
        border: 2px solid #e5e7eb !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
        transition: border-color 0.3s ease !important;
        box-sizing: border-box !important;
    }

    .form-group input:focus {
        outline: none !important;
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    }

    .btn-submit {
        width: 100% !important;
        padding: 0.75rem !important;
        background: #3b82f6 !important;
        color: white !important;
        border: none !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: background-color 0.3s ease !important;
    }

    .btn-submit:hover {
        background: #2563eb !important;
    }

    /* Appointment modal specific styles */
    .appointment-form {
        width: 100% !important;
    }

    .form-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .appointment-form input,
    .appointment-form textarea {
        width: 100% !important;
        padding: 0.75rem !important;
        border: 2px solid #e5e7eb !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
        transition: border-color 0.3s ease !important;
        box-sizing: border-box !important;
    }

    .appointment-form input:focus,
    .appointment-form textarea:focus {
        outline: none !important;
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    }

    .submit-btn {
        width: 100% !important;
        padding: 0.75rem !important;
        background: #3b82f6 !important;
        color: white !important;
        border: none !important;
        border-radius: 8px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: background-color 0.3s ease !important;
    }

    .submit-btn:hover {
        background: #2563eb !important;
    }

    /* Ensure body scrolling is enabled */
    body {
        position: relative !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
        min-height: 100vh !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        padding-top: 100px !important;
    }

    html {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        touch-action: auto !important;
        -webkit-overflow-scrolling: touch !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Adjust service cards layout for mobile */
    .services {
        background: white !important;
        margin-top: 0 !important;
        padding: 1rem 0 !important;
    }

    .services-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.8rem !important;
        padding: 0 1.2rem !important;
    }

    .service-card {
        min-height: 120px !important;
        padding: 1.2rem 0.8rem !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .service-card img {
        width: 40px !important;
        height: 40px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .service-card h3 {
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        text-align: center !important;
        margin: 0.5rem 0 0 0 !important;
        line-height: 1.3 !important;
        color: #1e293b !important;
    }

    .service-card .apply-btn {
        display: none !important;
    }

    /* Hide hero section content that doesn't match mobile design */
    .hero-content {
        display: none !important;
    }

    /* Hide smart loans, testimonials, and collaborations sections on mobile */
    .smart-loans,
    .testimonials,
    .collaborations,
    .mobile-collaborations,
    .collaborations-section:not(.mobile-collaborations) {
        display: none !important;
    }
    
    /* Show mobile collaborations section */
    .mobile-collaborations {
        display: block !important;
        padding: 2rem 0 !important;
        background: #f8fafc !important;
    }
    
    .mobile-collaborations .collaborations-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
        padding: 0 1.2rem !important;
    }
    
    .mobile-collaborations .collaboration-logo {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 1rem !important;
        background: white !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    }
    
    .mobile-collaborations .collaboration-logo img {
        max-width: 100% !important;
        height: auto !important;
        max-height: 60px !important;
    }
    
    /* Tax services grid styling */
    .tax-services-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        padding: 0 1.2rem !important;
        margin-top: 1rem !important;
    }
    
    .tax-services-grid .service-card {
        min-height: 120px !important;
        padding: 1.2rem 0.8rem !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        background: white !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }
    
    .tax-services-grid .service-card:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    }
    
    .tax-services-grid .service-card img {
        width: 40px !important;
        height: 40px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .tax-services-grid .service-card h3 {
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        text-align: center !important;
        margin: 0 !important;
        line-height: 1.3 !important;
        color: #1e293b !important;
    }

    /* Fix footer structure to properly display logo and button */
    .footer-section:first-child .footer-logo {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.8rem !important;
        margin-bottom: 1rem !important;
        cursor: pointer !important;
    }

    .footer-section:first-child .footer-logo img {
        width: 200px !important;
        height: 150px !important;
        border-radius: 12px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Specifically hide the CreditExchange text in footer */
    .footer-section:first-child .footer-logo span {
        display: none !important;
        visibility: hidden !important;
    }

    /* Hide apply now sticky button on mobile */
    .apply-now-sticky {
        display: none !important;
    }
    
    /* Mobile footer restructure - match the layout from the image */
    .footer-content {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0rem !important;
        padding: 1rem 1.2rem !important;
    }
    
    /* Hide desktop sections in mobile footer */
    .footer-section:nth-child(3),
    .footer-section:nth-child(4) {
        display: none !important;
    }
    
    /* Row 1: Logo (left) and Apply Now (right) */
    .footer-section:first-child {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        align-items: center !important;
        gap: 7rem !important;
        padding-bottom: 0.0rem !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
    
    .footer-section:first-child p {
        display: none !important;
    }
    
    .footer-section:first-child .footer-logo {
        margin-bottom: 0 !important;
    }
    
    .footer-section:first-child .footer-logo img {
        width: 120px !important;
        height: auto !important;
    }
    
    .footer-section:first-child .btn-primary {
        margin-top: 0 !important;
        padding: 0.75rem 1.5rem !important;
        background: #16a34a !important;
        border: none !important;
        border-radius: 8px !important;
        color: white !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }
    
    .footer-section:first-child .btn-primary:hover {
        background: #15803d !important;
    }
    
    /* Row 2: Contact Us (left) and Follow Us (right) */
    .footer-section:nth-child(2) {
        display: grid !important;
        grid-template-columns: 2fr 1fr !important;
        gap: 0rem !important;
        align-items: center !important;
        padding-bottom: 0.8rem !important;
        border-bottom: 0px solid #e2e8f0 !important;
    }
    
    .footer-section:nth-child(2) .footer-contact {
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        border-top: none !important;
    }
    
    .footer-section:nth-child(2) .footer-contact h4 {
        color: #1e293b !important;
        font-size: 0.9rem !important;
        margin-bottom: 0.4rem !important;
        font-weight: 600 !important;
    }
    
    .footer-section:nth-child(2) .footer-contact p {
        font-size: 0.75rem !important;
        color: #ffffff !important;
        line-height: 1.3 !important;
        margin-bottom: 0.2rem !important;
    }
    
    /* Follow us section on the right - centered */
    .footer-section:nth-child(2) > h4 {
        color: #1e293b !important;
        font-size: 0.9rem !important;
        margin-bottom: 0.4rem !important;
        font-weight: 600 !important;
        text-align: center !important;
    }
    
    .footer-section:nth-child(2) .social-links {
        display: flex !important;
        gap: 0.5rem !important;
        margin-top: 0.2rem !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    .footer-section:nth-child(2) .social-links a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        background: #f1f5f9 !important;
        border-radius: 8px !important;
        color: #000000 !important;
        font-size: 1.1rem !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }
    
    .footer-section:nth-child(2) .social-links a:hover {
        background: #3b82f6 !important;
        color: white !important;
    }
    
    /* Hide all other Follow Us sections on mobile */
    .footer-follow-us,
    .footer-follow-us-full,
    .footer-social-section {
        display: none !important;
    }
    
    /* Copyright at the bottom */
    .footer-bottom {
        margin-top: 0 !important;
        padding-top: 0.8rem !important;
        border-top: 1px solid #e2e8f0 !important;
    }
    
    .footer-bottom .footer-copyright p {
        font-size: 0.75rem !important;
        color: #ffffff !important;
        text-align: center !important;
        margin: 0 !important;
        line-height: 1.3 !important;
    }
}