/* AI Healthcare Blog Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header .logo img {
    height: 50px;
}

.header .navbar {
    display: flex;
    align-items: center;
}

.header .navbar ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.header .navbar ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.header .navbar ul li a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.zq_h5_header-right {
    margin-left: auto;
}

.zq_h5_header-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.zq_h5_header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(238, 90, 36, 0.4);
}

/* Page Container */
.page-container {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Title Section */
.page-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    line-height: 1.3;
}

/* Information Sections */
.page-info-section {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border-left: 5px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-info-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.page-info-section h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.page-info-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.page-info-section p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.page-info-section ul {
    list-style: none;
    margin: 1.5rem 0;
}

.page-info-section ul li {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.page-info-section ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.page-info-section ul li strong {
    color: #2c3e50;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.page-info-section ul li ul {
    margin: 1rem 0 0 1rem;
}

.page-info-section ul li ul li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #666;
}

.page-info-section ul li ul li::before {
    content: '•';
    color: #764ba2;
}

/* Highlight Boxes */
.page-highlight {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(240, 147, 251, 0.3);
}

.page-highlight strong {
    font-weight: 700;
    font-size: 1.1rem;
}

.page-highlight a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.page-highlight a:hover {
    color: #f0f0f0;
}

/* Utility Classes */
.mt-80 {
    margin-top: 5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-container {
        padding: 1rem;
        margin-top: 70px;
    }
    
    .page-title {
        font-size: 2rem;
        padding: 3rem 1.5rem;
    }
    
    .page-info-section {
        padding: 2rem;
    }
    
    .page-info-section h2 {
        font-size: 1.5rem;
    }
    
    .header-content {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .header .navbar ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header .logo img {
        height: 40px;
    }
    
    .zq_h5_header-right {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
        padding: 2rem 1rem;
    }
    
    .page-info-section {
        padding: 1.5rem;
    }
    
    .page-info-section h2 {
        font-size: 1.3rem;
    }
    
    .page-info-section p {
        font-size: 1rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.page-info-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Typography */
.page-info-section p {
    text-align: justify;
    hyphens: auto;
}

/* Card-like Design */
.page-info-section {
    position: relative;
    overflow: hidden;
}

.page-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
}

/* Interactive Elements */
.page-info-section ul li:hover {
    transform: translateX(5px);
    transition: transform 0.2s ease;
}

/* Print Styles */
@media print {
    .header,
    .back-to-top {
        display: none;
    }
    
    .page-container {
        margin-top: 0;
    }
    
    .page-info-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Additional Enhancements */
.page-info-section:nth-child(even) {
    border-left-color: #764ba2;
}

.page-info-section:nth-child(odd) {
    border-left-color: #667eea;
}

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.3s ease;
}

/* Enhanced focus states for accessibility */
.page-info-section h2:focus,
.page-info-section a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
}

/* Selection styling */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: #2c3e50;
}

/* Loading state for sections */
.page-info-section.loading {
    opacity: 0.7;
    transform: scale(0.98);
}

/* Enhanced button styles */
.zq_h5_header-btn svg {
    transition: transform 0.3s ease;
}

.zq_h5_header-btn:hover svg {
    transform: translateX(3px);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 1001;
    transition: width 0.3s ease;
}

/* Enhanced section transitions */
.page-info-section {
    position: relative;
    overflow: hidden;
}

.page-info-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.6s ease;
}

.page-info-section:hover::after {
    width: 100%;
}

/* Enhanced list styling */
.page-info-section ul li {
    position: relative;
    transition: all 0.3s ease;
}

.page-info-section ul li::before {
    transition: all 0.3s ease;
}

.page-info-section ul li:hover::before {
    transform: scale(1.2);
    color: #764ba2;
}

/* Enhanced highlight box animations */
.page-highlight {
    position: relative;
    overflow: hidden;
}

.page-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.page-highlight:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

/* Enhanced page title */
.page-title {
    position: relative;
    overflow: hidden;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.8s ease;
}

.page-title:hover::before {
    left: 100%;
}
