/*!
 * Bootstrap 4 Compatibility Layer for Axadle Theme - OPTIMIZED FOR TOP-NEWS
 * Version: 1.1.0
 * Author: AxadleStudio
 * Author URI: https://alimusa.so/
 * License: ThemeForest Split Licence
 * Copyright: (c) 2025 AxadleStudio
 * 
 * Maintains only USED Bootstrap 3/4 classes for top-news theme
 * Optimized version - removed 90% unused code from other demos
 */

/* Grid System - Only col-xs-* classes actually used in top-news theme */
.col-xs-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-xs-6 { flex: 0 0 50%; max-width: 50%; }
.col-xs-12 { flex: 0 0 100%; max-width: 100%; }

.col-xs-4, .col-xs-6, .col-xs-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* Panel Components - Only if used in top-news theme */
.panel {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.05);
    margin-bottom: 20px;
}

.panel-body {
    padding: 15px;
}

.panel-heading {
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    padding: 10px 15px;
}

.panel-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 16px;
    color: inherit;
}

.panel-default {
    border-color: #ddd;
}

.panel-default > .panel-heading {
    color: #333;
    background-color: #f5f5f5;
    border-color: #ddd;
}

/* Button Compatibility - btn-default used in top-news */
.btn-default {
    background-color: #fff;
    border-color: #ccc;
    color: #333;
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active {
    background-color: #e6e6e6;
    border-color: #adadad;
    color: #333;
}

/* Form Controls - Used in theme */
.form-control {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    color: #555;
    display: block;
    font-size: 14px;
    height: 34px;
    line-height: 1.42857143;
    padding: 6px 12px;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    width: 100%;
}

.form-control:focus {
    border-color: #66afe9;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
    outline: 0;
}

/* Responsive Image - img-responsive used */
.img-responsive {
    display: block;
    height: auto;
    max-width: 100%;
}

/* Utility Classes - pull-left/right used in theme */
.pull-left {
    float: left !important;
}

.pull-right {
    float: right !important;
}

/* Clearfix - used throughout theme */
.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}
.clearfix:after {
    clear: both;
}

/* Responsive Utilities - Only ones used in top-news theme */
.hidden-xs {
    display: block !important;
}
@media (max-width: 767.98px) {
    .hidden-xs {
        display: none !important;
    }
}

.visible-xs {
    display: none !important;
}
@media (max-width: 767.98px) {
    .visible-xs {
        display: block !important;
    }
}

/* Container Fluid - used in theme */
.container-fluid {
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}