/* Legacy Bootstrap Compatibility for page_contents */
/* Maps common Bootstrap 3 classes used in old content to equivalent styles */

/* Grid */
.post-content .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}
.post-content .col-md-1 { width: 100%; padding: 0 1rem; }
.post-content .col-md-2 { width: 100%; padding: 0 1rem; }
.post-content .col-md-3 { width: 100%; padding: 0 1rem; }
.post-content .col-md-4 { width: 100%; padding: 0 1rem; }
.post-content .col-md-5 { width: 100%; padding: 0 1rem; }
.post-content .col-md-6 { width: 100%; padding: 0 1rem; }
.post-content .col-md-7 { width: 100%; padding: 0 1rem; }
.post-content .col-md-8 { width: 100%; padding: 0 1rem; }
.post-content .col-md-9 { width: 100%; padding: 0 1rem; }
.post-content .col-md-10 { width: 100%; padding: 0 1rem; }
.post-content .col-md-11 { width: 100%; padding: 0 1rem; }
.post-content .col-md-12 { width: 100%; padding: 0 1rem; }
.post-content .col-sm-6 { width: 100%; padding: 0 1rem; }

@media (min-width: 768px) {
    .post-content .col-md-1 { width: 8.333%; }
    .post-content .col-md-2 { width: 16.666%; }
    .post-content .col-md-3 { width: 25%; }
    .post-content .col-md-4 { width: 33.333%; }
    .post-content .col-md-5 { width: 41.666%; }
    .post-content .col-md-6 { width: 50%; }
    .post-content .col-md-7 { width: 58.333%; }
    .post-content .col-md-8 { width: 66.666%; }
    .post-content .col-md-9 { width: 75%; }
    .post-content .col-md-10 { width: 83.333%; }
    .post-content .col-md-11 { width: 91.666%; }
    .post-content .col-md-12 { width: 100%; }
    .post-content .col-sm-6 { width: 50%; }
}

/* Images */
.post-content .img-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
}

/* Tables */
.post-content .table-bordered {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
}
.post-content .table-bordered th,
.post-content .table-bordered td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
}
.post-content .table-bordered th {
    background: var(--gray-50, #f9fafb);
    font-weight: 600;
}
.post-content .table {
    width: 100%;
    border-collapse: collapse;
}
.post-content .table th,
.post-content .table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Text utilities */
.post-content .text-center { text-align: center; }
.post-content .text-left { text-align: left; }
.post-content .text-right { text-align: right; }
.post-content .text-danger { color: #ef4444; }
.post-content .text-primary { color: var(--primary-600, #ea580c); }
.post-content .text-bold, .post-content .text-strong { font-weight: 700; }
.post-content .text-white { color: white; }
.post-content .text-black { color: #111827; }

/* Button compatibility */
.post-content .au-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.post-content .au-btn-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
}
.post-content .au-btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Spacing utilities */
.post-content .m-b-5 { margin-bottom: 5px; }
.post-content .m-b-10 { margin-bottom: 10px; }
.post-content .m-b-15 { margin-bottom: 15px; }
.post-content .m-b-20 { margin-bottom: 20px; }
.post-content .m-b-25 { margin-bottom: 25px; }
.post-content .m-b-30 { margin-bottom: 30px; }
.post-content .m-b-40 { margin-bottom: 40px; }
.post-content .m-t-5 { margin-top: 5px; }
.post-content .m-t-10 { margin-top: 10px; }
.post-content .m-t-15 { margin-top: 15px; }
.post-content .m-t-20 { margin-top: 20px; }
.post-content .m-t-30 { margin-top: 30px; }
.post-content .m-r-5 { margin-right: 5px; }
.post-content .m-r-10 { margin-right: 10px; }
.post-content .m-l-5 { margin-left: 5px; }
.post-content .m-l-10 { margin-left: 10px; }
.post-content .p-t-10 { padding-top: 10px; }
.post-content .p-t-20 { padding-top: 20px; }
.post-content .p-t-30 { padding-top: 30px; }
.post-content .p-b-10 { padding-bottom: 10px; }
.post-content .p-b-20 { padding-bottom: 20px; }
.post-content .p-b-30 { padding-bottom: 30px; }
.post-content .p-10 { padding: 10px; }
.post-content .p-15 { padding: 15px; }
.post-content .p-20 { padding: 20px; }

/* Heading styles in content */
.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5, .post-content h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--gray-900, #111827);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--gray-700, #374151);
}

.post-content ul, .post-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--gray-700, #374151);
}

.post-content a:not(.t-btn) {
    color: var(--primary-600, #ea580c);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content a:hover:not(.t-btn) {
    color: var(--primary-700, #c2410c);
}

/* Pull classes */
.post-content .pull-left { float: left; margin-right: 1rem; }
.post-content .pull-right { float: right; margin-left: 1rem; }
.post-content .clearfix::after { content: ""; display: table; clear: both; }

/* Alert / well */
.post-content .well {
    background: var(--gray-50, #f9fafb);
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

/* Hidden classes */
.post-content .hidden { display: none; }
.post-content .visible-xs { display: none; }
@media (max-width: 767px) {
    .post-content .visible-xs { display: block; }
    .post-content .hidden-xs { display: none; }
}
