@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1320px;
    }
}

@media screen and (min-width: 768px) {

    .container,
    .container-fluid,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        padding-right: 0;
        padding-left: 0;
    }

    .d-lg-none {
        display: none !important;
    }

    .d-sm-none {
        display: block !important;
    }

    .bg-image-container {
        background-image: url('/images/static/bg-bulls.png');
        background-size: contain;
        background-position: right;
        background-repeat: no-repeat;
    }
}

/* Small Devices */
@media screen and (max-width: 576px) {
    .hero-section {
        box-sizing: border-box;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }

    .high-low-charts-section {
        margin-top: 3rem;
    }

    .mining-news,
    .advertisement-card,
    .weeks-high-stocks {
        padding-left: 0;
        padding-right: 0;
    }

    .our-subscription {
        padding-left: 0;
        padding-right: 0;
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .our-subscription .sub-details .pkg-benefits li {
        line-height: 0.9rem;
    }

    .etf-news-section {
        margin-top: 3rem;
    }

    .d-sm-none {
        display: none !important;
    }

    .veye-footer .footer-top {
        flex-direction: column;
        align-items: start !important;
        justify-content: start !important;
    }

    .veye-footer .footer-top p {
        margin-left: 0.3rem !important;
    }

    .veye-footer .footer-last-line>div {
        flex-direction: column;
    }

    .stay-updated {
        margin-top: 2rem;
    }

    .bg-image-container {
        background-color: #F3F3F3;
        background-size: cover;
        background-position: center;
    }

    .header .veye-bottom-navbar .navbar-nav {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;

        font-size: 1.0rem;
        font-weight: 500;
        color: var(--text-dark-color);
    }

    .user-dashboard-content .user-avatar-section {
        display: none;
    }

    .user-dashboard .main-sidebar,
    .user-dashboard .main-sidebar .card {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .login-content .card .card-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .past-recommendations-page .heading {
        font-size: 1.8rem;
    }

    .veye-table-card .table-header {
        display: flex;
        flex-direction: column;
    }

    .veye-table-card .veye-pagination > div {
        display: flex;
        flex-direction: column;
    }

    .veye-pagination > div {
        align-items: start;
    }

    .contact-card-body {
        padding: 5px;
        height: auto;
    }

    .contact-card-body .contact-form {
        display: block;
    }

    .contact-card-body .contact-form .card {
        padding: 5px;
    }

    .trending-new-page .latest-articles {
        margin-top: 1rem;
    }

    .free-trial-content .card .card-body {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Medium Devices */
@media (max-width: 767.98px) {
    .main-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 260px;
        height: 100vh;
        z-index: 1050;
        background: #fff;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .main-sidebar.show {
        left: 0;
        transition: left 0.3s ease;
    }

    .user-dashboard .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1049;
    }

    .user-dashboard .overlay.show {
        display: block;
    }

    .user-dashboard-content {
        position: relative;
        z-index: 1;
    }

    .editorials-page .editorial-listings .editorial-card img {
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    }

    .report-category-page .report-listings .editorial-card img {
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    }
}

/* ===================================================
   HOME PAGE - RESPONSIVE
   =================================================== */

/* Tablet */
@media (max-width: 991.98px) {
    .home-section .col-8,
    .home-section .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .right-section {
        padding-left: 12px;
        margin-top: 2rem;
    }

    .bottom-part .col-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .asx-anouncements .col-8,
    .asx-anouncements .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .trending-market-news .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .side-news-col {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .home-section .col-8,
    .home-section .col-4,
    .stock-cards .col-4,
    .asx-anouncements .col-8,
    .asx-anouncements .col-4,
    .bottom-part .news-posts .col-6,
    .trending-market-news .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .right-section {
        padding-left: 12px;
        margin-top: 2rem;
    }

    .subscribe-section {
        flex-direction: column;
        align-items: center !important;
        gap: 24px;
        text-align: center;
        padding: 0 1rem;
    }

    .subscribe h2 {
        font-size: 1.4rem;
        white-space: normal;
    }

    .subscribe-form {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .subscribe-form .form-control {
        min-width: unset;
        width: 100%;
    }

    .bottom-part .section-heading,
    .trending-market-news h2 {
        font-size: 1.15rem;
    }

    .veye-footer .footer-last-line .row > div {
        font-size: 0.78rem;
    }

    .marquee-tile {
        padding: 4px 14px;
    }
}

