@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: cover;
        background-position: bottom;
        background-repeat: no-repeat;
    }

    /* Header Hover Links */
    .header .veye-bottom-navbar .dropdown-menu {
        display: none;
        opacity: 0;
        /* Initially invisible */
        transform: translateY(-10px);
        /* Position it slightly above */
        transition: transform 0.3s ease, opacity 0.3s ease;
        /* Add smooth transition */
    }

    .header .veye-bottom-navbar .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        /* Make it visible */
        opacity: 1;
        /* Make it fully visible */
        transform: translateY(0);
        /* Move it to its normal position */
    }
}

/* Small Devices */
@media screen and (max-width: 576px) {
    .marquee-text {
        top: 50%;
        left: -10px !important;
        padding-left: 10px !important;
    }

    .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-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;
    }

    .veye-table-card {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .veye-table-card .card-body {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .user-dashboard {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .user-dashboard .wishlist-section > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .editorial-details-page.report-details-page,
    .editorial-details-page.report-details-page .container,
    .container-fluid.report-category-page {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .editorial-details-page .editorial-details {
        padding-left: 0rem !important;
        padding-right: 0rem !important;
    }

    .product-review img {
        margin-top: 1rem;
    }

    #portfolioTabs, #watchlistTabs {
        row-gap: 1rem;
    }

    .about-page .about-section h2 {
        margin-top: 1rem;
    }

    .daily-analysis .horizontal-cards .card .card-img-top {
        max-width: 115px;
    }
}

/* Medium Devices & Tablets — off-canvas sidebar below lg */
@media (max-width: 991.98px) {
    .main-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        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;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    .main-sidebar .card,
    .main-sidebar .sidebar-card {
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .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;
    }
}

