/**
 * Footer Pages CSS Fix
 * Resolves layout issues on pages linked from footer
 * Ensures consistent, modern, professional appearance
 */

/* Global Reset for Footer Pages */
.footer-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.footer-page main {
    flex: 1;
    padding-top: 80px; /* Account for fixed header */
}

/* Container fixes */
.footer-page .container,
.footer-page .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Card and content styling */
.footer-page .card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.footer-page .card-body {
    padding: 2rem;
}

/* Typography fixes */
.footer-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.footer-page h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #374151;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.footer-page h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4b5563;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.footer-page p {
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 1rem;
}

/* List styling */
.footer-page ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.footer-page li {
    margin-bottom: 0.5rem;
    color: #6b7280;
}

/* Link styling */
.footer-page a {
    color: #2563eb;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-page a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Button styling */
.footer-page .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-page .btn-primary {
    background: #2563eb;
    border-color: #2563eb;
}

.footer-page .btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.footer-page .btn-outline-secondary {
    color: #6b7280;
    border-color: #d1d5db;
}

.footer-page .btn-outline-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

/* Alert styling */
.footer-page .alert {
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-page .alert-info {
    background-color: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

.footer-page .alert-warning {
    background-color: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

/* Section spacing */
.footer-page section {
    margin-bottom: 3rem;
}

/* Legal page specific styles */
.legal-content {
    font-size: 1rem;
    line-height: 1.8;
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.legal-notice,
.liability-notice {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.liability-notice {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

/* FAQ page specific styles */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    font-weight: 600;
    color: #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: #6b7280;
    margin-top: 1rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Responsive design */
@media (max-width: 768px) {
    .footer-page main {
        padding-top: 70px;
    }
    
    .footer-page .card-body {
        padding: 1.5rem;
    }
    
    .footer-page h1 {
        font-size: 2rem;
    }
    
    .footer-page h2 {
        font-size: 1.5rem;
    }
    
    .footer-page h3 {
        font-size: 1.25rem;
    }
}

/* Ensure footer stays at bottom */
.yourmd-footer {
    margin-top: auto !important;
}

/* Fix any Bootstrap conflicts */
.footer-page .row {
    margin-left: -15px;
    margin-right: -15px;
}

.footer-page .col-lg-10,
.footer-page .col-lg-8,
.footer-page .col-md-6 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Navigation fixes for footer pages */
.footer-page .navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.footer-page .navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.footer-page .nav-link {
    color: #6b7280;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-page .nav-link:hover {
    color: #2563eb;
}

.footer-page .nav-link.active {
    color: #2563eb;
}