/* Page Content Container */
.sitepage .page-content {
    background: #ffffff !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    margin-bottom: 2rem !important;
    border: 1px solid #e9ecef !important;
}

.sitepage .content-wrapper {
    padding: 3rem !important;
    line-height: 1.8 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

.sitepage .content-wrapper p {
    padding-left: 1rem !important;
}

/* Typography Styles */
.sitepage .content-wrapper h1,
.sitepage .content-wrapper h2,
.sitepage .content-wrapper h3,
.sitepage .content-wrapper h4,
.sitepage .content-wrapper h5,
.sitepage .content-wrapper h6 {
    margin-top: 2.5rem !important;
    margin-bottom: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #2c3e50 !important;
}

.sitepage .content-wrapper h1:first-child,
.sitepage .content-wrapper h2:first-child,
.sitepage .content-wrapper h3:first-child {
    margin-top: 0 !important;
}

.sitepage .content-wrapper h1 {
    font-size: 1.8rem !important;
    border-bottom: 3px solid #007bff !important;
    padding-bottom: 0.6rem !important;
    margin-bottom: 1.2rem !important;
    color: #1a1a1a !important;
}

.sitepage .content-wrapper h2 {
    font-size: 1.4rem !important;
    border-bottom: 2px solid #dee2e6 !important;
    padding-bottom: 0.4rem !important;
    color: #2c3e50 !important;
}

.sitepage .content-wrapper h3 {
    font-size: 1.2rem !important;
    color: #495057 !important;
    border-left: 3px solid #007bff !important;
    padding-left: 0.8rem !important;
}

.sitepage .content-wrapper h4 {
    font-size: 1.1rem !important;
    color: #6c757d !important;
}

.sitepage .content-wrapper h5,
.sitepage .content-wrapper h6 {
    font-size: 1rem !important;
    color: #6c757d !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}

/* Paragraph and Text */
.sitepage .content-wrapper p {
    margin-bottom: 1.3rem !important;
    line-height: 1.7 !important;
    color: #4a5568 !important;
    font-size: 0.95rem !important;
    text-align: justify !important;
}

.sitepage .content-wrapper strong {
    font-weight: 600 !important;
    color: #2d3748 !important;
}

.sitepage .content-wrapper em {
    font-style: italic !important;
    color: #4a5568 !important;
}

/* Lists */
.sitepage .content-wrapper ul,
.sitepage .content-wrapper ol {
    margin-bottom: 1.8rem !important;
    padding-left: 2.5rem !important;
    line-height: 1.7 !important;
}

.sitepage .content-wrapper li {
    margin-bottom: 0.8rem !important;
    line-height: 1.7 !important;
    color: #4a5568 !important;
    padding-left: 0.3rem !important;
}

.sitepage .content-wrapper ul li {
    list-style-type: decimal !important;
    position: static !important;
    margin-left: 0 !important;
}

.sitepage .content-wrapper ul li:before {
    display: none !important;
}

/* Blockquotes */
.sitepage .content-wrapper blockquote {
    border-left: 5px solid #007bff !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    padding: 1.5rem 2rem !important;
    margin: 2rem 0 !important;
    border-radius: 0 8px 8px 0 !important;
    font-style: italic !important;
    color: #495057 !important;
    position: relative !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.sitepage .content-wrapper blockquote:before {
    content: '💬' !important;
    position: absolute !important;
    top: -10px !important;
    left: 15px !important;
    background: #fff !important;
    padding: 0 10px !important;
    font-size: 1.2rem !important;
}

/* Code Styling */
.sitepage .content-wrapper code {
    background: #f1f3f4 !important;
    padding: 0.3rem 0.6rem !important;
    border-radius: 4px !important;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace !important;
    font-size: 0.9em !important;
    color: #d63384 !important;
    border: 1px solid #dee2e6 !important;
    font-weight: 500 !important;
}

.sitepage .content-wrapper pre {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: #ecf0f1 !important;
    padding: 2rem !important;
    border-radius: 10px !important;
    overflow-x: auto !important;
    margin: 2rem 0 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    border: 1px solid #4a5568 !important;
}

.sitepage .content-wrapper pre:before {
    content: '💻 Code' !important;
    position: absolute !important;
    top: 10px !important;
    right: 15px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 5px 10px !important;
    border-radius: 5px !important;
    font-size: 0.8rem !important;
    color: #bdc3c7 !important;
}

.sitepage .content-wrapper pre code {
    background: none !important;
    padding: 0 !important;
    border: none !important;
    color: inherit !important;
    font-size: 0.95rem !important;
}

/* Tables */
.sitepage .content-wrapper table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 2rem 0 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 1px solid #dee2e6 !important;
}

.sitepage .content-wrapper th,
.sitepage .content-wrapper td {
    padding: 1rem 1.5rem !important;
    text-align: left !important;
    border-bottom: 1px solid #e9ecef !important;
    vertical-align: top !important;
}

.sitepage .content-wrapper th {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: white !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 0.9rem !important;
}

.sitepage .content-wrapper tr:nth-child(even) {
    background: #f8f9fa !important;
}

.sitepage .content-wrapper tr:hover {
    background: #e3f2fd !important;
    transform: scale(1.01) !important;
    transition: all 0.3s ease !important;
}

.sitepage .content-wrapper tr:last-child td {
    border-bottom: none !important;
}

/* Images */
.sitepage .content-wrapper img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    margin: 2rem auto !important;
    display: block !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #e9ecef !important;
    transition: transform 0.3s ease !important;
}

.sitepage .content-wrapper img:hover {
    transform: scale(1.02) !important;
}

/* Links */
.sitepage .content-wrapper a {
    color: #007bff !important;
    text-decoration: none !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    position: relative !important;
}

.sitepage .content-wrapper a:hover {
    color: #0056b3 !important;
    border-bottom-color: #0056b3 !important;
    text-decoration: none !important;
}

.sitepage .content-wrapper a:before {
    content: '🔗' !important;
    margin-right: 0.3rem !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.sitepage .content-wrapper a:hover:before {
    opacity: 1 !important;
}

/* Horizontal Rule */
.sitepage .content-wrapper hr {
    border: none !important;
    height: 2px !important;
    background: #2c3e50 !important;
    margin: 1rem 0 !important;
    border-radius: 2px !important;
    position: relative !important;
}

/* Responsive Design */
@media (max-width: 992px) {
    .sitepage .content-wrapper {
        padding: 2rem !important;
    }
}

@media (max-width: 768px) {
    .sitepage .content-wrapper {
        padding: 1.5rem !important;
    }
    
    .sitepage .content-wrapper h1 {
        font-size: 1.5rem !important;
    }
    
    .sitepage .content-wrapper h2 {
        font-size: 1.2rem !important;
    }
    
    .sitepage .content-wrapper h3 {
        font-size: 1.1rem !important;
    }
    
    .sitepage .content-wrapper table {
        font-size: 0.9rem !important;
    }
    
    .sitepage .content-wrapper th,
    .sitepage .content-wrapper td {
        padding: 0.8rem !important;
    }
    
    .sitepage .content-wrapper pre {
        padding: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .sitepage .content-wrapper {
        padding: 1rem !important;
    }
    
    .sitepage .content-wrapper ul,
    .sitepage .content-wrapper ol {
        padding-left: 2rem !important;
    }
    
    .sitepage .content-wrapper h1 {
        font-size: 1.4rem !important;
    }
    
    .sitepage .content-wrapper h2 {
        font-size: 1.1rem !important;
    }
    
    .sitepage .content-wrapper h3 {
        font-size: 1rem !important;
        padding-left: 0.8rem !important;
    }
}