/**
 * Compatibility CSS - Bridges Old and New Styles
 * This file helps old pages work with new header/footer
 * while maintaining the new color scheme
 */

/* Color Variables for Old Pages */
:root {
    --hm-bg-main: #EEE9DF;
    --hm-surface: #F5F2EC;
    --hm-border-soft: #C9C1B1;
    --hm-primary: #2C3B4D;
    --hm-primary-dark: #1B2632;
    --hm-primary-light: #E3E7EB;
    --hm-accent: #FFB162;
    --hm-accent-hover: #E89A4A;
    --hm-accent-alt: #A35139;
    --hm-text-main: #1B2632;
    --hm-text-gray: #5F6B78;
}

/* Old Main Container Compatibility */
.main {
    background: var(--hm-bg-main);
    min-height: 60vh;
    padding: 40px 0;
}

.main-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Old Content Styles */
.content {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--hm-border-soft);
}

.page-title h1,
.document-title h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    color: var(--hm-primary);
    margin: 0 0 24px;
    font-weight: 700;
}

/* Old Sidebar Compatibility */
.sidebar {
    background: var(--hm-surface);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--hm-border-soft);
}

/* Old Button Styles - Update to New Theme */
.btn-primary,
.blue_btn {
    background: var(--hm-accent) !important;
    color: #1B2632 !important;
    border: none !important;
    padding: 12px 28px !important;
    border-radius: 99px !important;
    font-weight: 700 !important;
    transition: all 0.3s !important;
}

.btn-primary:hover,
.blue_btn:hover {
    background: var(--hm-accent-hover) !important;
    transform: translateY(-2px);
}

/* Old Form Styles */
.form-control {
    border: 2px solid var(--hm-border-soft) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    transition: all 0.3s !important;
}

.form-control:focus {
    border-color: var(--hm-accent) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 177, 98, 0.1) !important;
}

/* Old Background Classes */
.background-white {
    background: #fff !important;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

/* Old Typography */
.content h2,
.content h3 {
    color: var(--hm-primary);
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 16px;
}

.content h2 {
    font-size: 28px;
}

.content h3 {
    font-size: 22px;
    color: var(--hm-accent-alt);
}

.content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--hm-text-main);
    margin-bottom: 16px;
}

/* Old Breadcrumb */
.breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin: 16px 0 !important;
}

.breadcrumb li {
    color: var(--hm-text-gray);
}

.breadcrumb li a {
    color: var(--hm-primary);
    text-decoration: none;
}

.breadcrumb li a:hover {
    color: var(--hm-accent);
}

/* Old Row/Col Compatibility */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    padding: 0 15px;
}

/* Responsive */
@media (max-width: 991px) {
    .main {
        padding: 20px 0;
    }
    
    .content {
        padding: 20px;
    }
    
    .page-title h1,
    .document-title h1 {
        font-size: 28px;
    }
    
    [class*="col-sm-"],
    [class*="col-lg-"] {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Hide Old Ads on Mobile */
@media (max-width: 768px) {
    .adsbygoogle {
        display: none !important;
    }
}

/* Footer naturally sits at bottom when content is tall enough.
   No flex/grid on body - these break position:sticky on the header. */
