/**
 * Aitenori Main Stylesheet
 * Custom CSS for frontend layout
 */

 :root {
    --theme-primary: #000000;
    --theme-secondary: #ff0000;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background: #ffffff;
}

.bg-dark{
    background: linear-gradient(180deg, #111827 0%, #111827 100%) !important;
}

footer .border-primary {
    border-color: var(--theme-secondary) !important;
}

footer .text-primary {
    color: var(--theme-secondary) !important;
}

.text-primary-custom {
    color: var(--theme-primary);
}

.text-secondary-custom {
    color: var(--theme-secondary);
}

.bg-gradient-custom {
    background: linear-gradient(to right, var(--theme-primary), var(--theme-secondary));
    border: none;
}

/* Background clip text utility for gradient text effect */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Text transparent utility */
.text-transparent {
    color: transparent !important;
}

.glass {
    background: transparent;
    border: 1px solid #ededed;
    border-radius: 1rem !important;
}

main{
    padding: 0 10px;
}

.oxi-ad-box {
    background: #f2f2f2;
    /*padding: 0 10px;*/
}

.oxi-ad-title {
    margin-bottom: 0.2rem !important;
    font-size: 0.7rem !important;
}

/* Vertical Ad Close Button */
.btn-close-vertical-ad {
    background: #dc3545 !important;
    border: none !important;
    color: white !important;
    cursor: pointer;
    padding: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    opacity: 0.9;
}

.btn-close-vertical-ad:hover {
    opacity: 1;
    transform: scale(1.1);
}

.btn-close-vertical-ad i {
    color: white !important;
}

/* Header Logo - Responsive Height */
.header-logo {
    height: 50px;
    /* Mobile default */
    width: auto;
    object-fit: contain;
}

/* Desktop/PC/Laptop - Larger logo */

.hover-glow:hover {
    box-shadow: 0 0 25px rgba(79, 70, 229, 0.4);
}

/* Banner728 hover effect */
#rotatingBanner728 {
    cursor: pointer;
}

#rotatingBanner728:hover {
    opacity: 0.95;
}

/* Banner728 Container Styles */
.banner728-container {
    display: block !important;
    flex-shrink: 0;
}

.banner728-responsive {
    width: min(550px, 40vw);
    aspect-ratio: 728 / 90;
    height: auto;
    position: relative;
    overflow: hidden;
}

.banner728-responsive .banner728-item {
    position: absolute;
    inset: 0;
}

.banner728-responsive img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

@media (max-width: 991.98px) {
    .banner728-responsive {
        width: min(520px, 46vw);
    }
}

.prose > .twitter-tweet.twitter-tweet-rendered {
    display: flex !important;
}
iframe#twitter-widget-0 {
    display: block !important;
}


/* Ensure banner728 shows on xl screens and above */
@media (min-width: 1200px) {
    .banner728-container {
        display: block !important;
    }
}

.banner728-container .banner728-item {
    width: 100%;
    height: 100%;
}

.banner728-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* reCAPTCHA responsive styling */
.recaptcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 78px;
    padding: 10px 0;
}

.recaptcha-container .g-recaptcha {
    transform: scale(1);
    transform-origin: center center;
}


/* Floating Vertical Ads Styling */
.floating-vertical-ad {
    position: fixed;
    z-index: 30;
    max-width: 300px;
    max-height: 550px;
}

.floating-vertical-ad .glass {
    max-height: 550px;
    overflow: hidden;
}

/* Hide vertical ads on tablets and smaller (below 992px) - Show on laptops (992px+) */

/* Google Ads Containment Styles */
.ad-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.ad-container .glass {
    overflow: hidden;
    position: relative;
}

.ad-container ins.adsbygoogle,
.ad-container .adsbygoogle {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.ad-container iframe {
    max-width: 100% !important;
    width: 100% !important;
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
}

.line-clamp-3 {
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
}

/* Navbar styling */
.navbar-dark {
    background-color: #1a1a1a !important;
}

/* Mobile header and navbar - remove thick black borders */

    /* Ensure no black background shows through */
    #mainNavbar.bg-dark {
        background: transparent !important;
    }
}

.nav-link {
    transition: all 0.3s ease;
}

.dropdown-menu {
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Market News Dropdown - Custom 4 Column Box System - Only for MARKET NEWS */
#mainNavbar .dropdown:has(.market-news-dropdown) {
    position: static;
}

#mainNavbar .dropdown:has(.market-news-dropdown)>div {
    position: relative;
}

.market-news-dropdown {
    max-width: 78rem !important;
    /* 7xl - 1280px */
    width: 78rem !important;
    padding: 0 !important;
    position: absolute !important;
    left: calc(((100vw - 78rem) / 2) - 0.5rem) !important;
    /* Move left slightly */
    top: 100% !important;
    transform: none !important;
    right: auto !important;
    margin-top: 0 !important;
    z-index: 1050 !important;
}

.market-news-dropdown .row {
    margin: 0 !important;
    width: 100% !important;
}

.market-news-dropdown .col {
    padding: 0 !important;
    flex: 0 0 25% !important;
    /* 4 columns = 25% each */
    max-width: 25% !important;
    width: 25% !important;
}

.market-news-dropdown .list-unstyled {
    margin: 0 !important;
    padding: 0 !important;
}

.market-news-dropdown .dropdown-item {
    padding: 0.75rem 1rem !important;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid #e0e0e0;
}

.market-news-dropdown .dropdown-item:first-child {
    border-top: none !important;
}

.market-news-dropdown .dropdown-item:hover {
    background-color: #f8f9fa !important;
    color: var(--theme-primary) !important;
}

.market-news-dropdown .border-start {
    border-color: #e0e0e0 !important;
    border-width: 1px !important;
}

/* Smooth transition for fixed navbar */
#mainNavbar {
    transition: all 0.3s ease-in-out;
}

/* Fixed navbar styles when scrolling */
#mainNavbar.navbar-fixed,
#mainNavbar.fixed-top,
#mainNavbar[style*="position: fixed"] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1030 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navigation menu - constrained to 7xl width like header */
#mainNavbar {
    width: 100%;
    overflow: visible !important;
    padding: 0;
}

#mainNavbar>div {
    width: 100%;
    max-width: 75rem;
    /* 7xl - 1280px */
    overflow: visible !important;
}

#mainNavbar>div>div {
    width: 100%;
    overflow: visible !important;
}

#mainNavbar .d-none.d-lg-flex {
    flex-wrap: nowrap !important;
    overflow: visible !important;
}

#mainNavbar .nav-link {
    white-space: nowrap !important;
    flex-shrink: 0;
    font-size: 0.875rem;
    padding: 15px 10px !important;
}

#mainNavbar .dropdown {
    flex-shrink: 0;
    position: relative;
}

#mainNavbar .dropdown-menu {
    position: absolute;
    z-index: 1000;
    margin-top: 0;
}

#mainNavbar .btn {
    flex-shrink: 0;
    white-space: nowrap !important;
    border-radius: 0 !important;
    padding: 13px 10px !important;
    ;
}

/* Post title link hover effect */
a.text-dark.fw-semibold:hover {
    color: var(--theme-primary) !important;
    transition: color 0.3s ease;
}


/* Max width 7xl (1280px) */
.max-w-7xl {
    max-width: 75rem;
    /* 1280px */
    margin-left: auto;
    margin-right: auto;
}

/* Post View Styles */
.prose {
    color: #374151;
    line-height: 1.75;
}

.prose p {
    margin-bottom: 1.25em;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.prose {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25em 0;
    table-layout: fixed;
}

.prose th,
.prose td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    vertical-align: top;
    text-align: left;
    word-break: break-word;
}

.prose thead th {
    background: #000;
    color: #fff;
    font-weight: 700;
}

.prose table tr:first-child > th,
.prose table tr:first-child > td {
    background: #000;
    color: #fff;
    font-weight: 700;
}

.prose tbody tr:nth-child(even) td {
    background: rgba(249, 250, 251, 0.7);
}

.top-headline-fixed-height {
    height: 360px;
}

.top-histories-list .top-histories-item {
    padding: 8px 0;
    min-height: 0;
}

.top-histories-list .top-histories-item:last-child {
    border-bottom: 0 !important;
}

.top-histories-list {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.top-headline-caption {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
}

.top-headline-caption-box {
    background: rgba(0, 0, 0, 0.85);
    padding: 12px;
    margin: 0 12px 12px;
    border-radius: 12px;
}

.top-headline-caption-title {
    font-size: 1.05rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .top-headline-fixed-height {
        height: auto;
    }
    .top-histories-list {
        overflow-y: visible;
    }
    .top-headline-caption-box {
        margin: 0 10px 10px;
        padding: 10px;
        border-radius: 10px;
    }
    .top-headline-caption-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    .top-headline-caption-title {
        font-size: 0.85rem;
    }
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

.prose h1 {
    font-size: 1.875rem;
}

.prose h2 {
    font-size: 1.5rem;
}

.prose h3 {
    font-size: 1.25rem;
}

.prose h1 {
        font-size: 1.5rem;
    }

    .prose h2 {
        font-size: 1.25rem;
    }

    .prose h3 {
        font-size: 1.125rem;
    }
}

/* Rotating Banner 1200 */
.rotating-banner1200-container {
    width: 100% !important;
}

.rotating-banner1200-container .banner1200-item {
    width: 100% !important;
    height: auto !important;
}

.rotating-banner1200-container .banner1200-item img,
.rotating-banner1200-container .banner1200-item iframe {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
}

/* Post View Hover Effects */
.hover-tag:hover {
    background-color: #e9ecef !important;
    color: var(--theme-primary) !important;
    transition: all 0.3s ease;
}

.hover-title:hover {
    color: var(--theme-primary) !important;
    transition: color 0.3s ease;
}

.hover-text:hover {
    color: #495057 !important;
    transition: color 0.3s ease;
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-scale-sm {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-scale-sm:hover {
    transform: scale(1.02);
}

.hover-shadow-sm {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hover-shadow-sm:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Share button hover */
.rounded-circle.bg-dark:hover {
    background-color: var(--theme-primary) !important;
    transition: background-color 0.3s ease;
}

/* Responsive heading sizes */

/* Border purple utility */
.border-purple {
    border-color: #6f42c1 !important;
}

.bg-purple {
    background-color: #6f42c1 !important;
}

/* Mobile Only - Fix horizontal overflow and right side space */
    html {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
    }

    /* Force all containers to fit viewport - minimal padding */
    .max-w-7xl {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 1rem !important;
        /* 16px - proper left spacing */
        padding-right: 1rem !important;
        /* 16px - proper right spacing */
    }

    /* Footer specific padding on mobile - ensure proper left and bottom spacing */
    footer .max-w-7xl {
        max-width: 100% !important;
        width: 75rem !important;
        margin: 0 auto !important;
    }

    /* Ensure footer bottom bar has proper bottom spacing */
    footer .border-top .max-w-7xl {
        padding-bottom: 1rem !important;
    }

    /* Override Bootstrap px-6 class on mobile */
    .px-6 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .px-3 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Fix Bootstrap row on mobile */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    /* Fix Bootstrap columns padding - minimal */
    [class*="col-"] {
        padding-left: 0.5rem !important;
        /* 8px - reduced from 12px */
        padding-right: 0.5rem !important;
        /* 8px - reduced from 12px */
    }

    /* Ensure all main sections are contained */
    main,
    section,
    header,
    footer,
    nav {
        max-width: 78rem !important;
        width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 auto;
    }

    /* Hide wide elements that cause overflow - but not banner728 */
    [style*="width: 550px"]:not(.banner728-container),
    [style*="width:550px"]:not(.banner728-container) {
        display: none !important;
    }

    /* Ensure images and media don't overflow */
    img,
    video,
    iframe {
        max-width: 100% !important;
        height: auto;
    }

    /* Reduce padding on home page post cards */
    .glass.p-4 {
        padding: 0.75rem !important;
        /* 12px - reduced from 24px */
    }

    /* Reduce gap between post cards */
    .row.g-4 {
        --bs-gutter-x: 0.75rem !important;
        /* 12px - reduced from 24px */
        --bs-gutter-y: 0.75rem !important;
        /* 12px - reduced from 24px */
    }

    /* Reduce margin bottom on cards */
    .mb-4 {
        margin-bottom: 1rem !important;
        /* 16px - reduced from 24px */
    }

    /* Reduce padding on article content */
    article .py-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}


/* Post Thumbnail Responsive Styles */
.post-thumbnail-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}


/* Project Review Thumbnail Responsive Styles */
.project-review-thumbnail-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.project-review-thumbnail-placeholder {
    height: 200px;
}


/* Project Review Card Thumbnail Responsive Styles */
.project-review-card-thumbnail {
    height: 150px;
    object-fit: cover;
    width: 100%;
}

.project-review-card-placeholder {
    height: 150px;
}


/* Project Review Sidebar Width Adjustment */

/* Sidebar Link Hover Effect */
.hover-bg-light {
    transition: background-color 0.2s ease;
}

.hover-bg-light:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

/* ============================================
   Sidebar Navigation Layout
   ============================================ */

/* Sidebar Navigation Layout */
.sidebar-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar-nav {
    width: 280px;
    background: #ffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    transform: translateX(-100%);
    /* Hide scrollbar but keep scrolling functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.sidebar-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    width: 100%;
}

.sidebar-close-btn {
    display: flex;
    background: transparent;
    border: none;
    color: #111827;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.sidebar-close-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}


.sidebar-menu {
    padding: 15px 0;
}

.sidebar-item {
    display: block;
    padding: 14px 20px;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-item:hover {
    background: rgba(220, 38, 38, 0.10);
    color: #dc2626;
    border-left-color: #dc2626;
    padding-left: 25px;
}

.sidebar-item.active {
    background: rgba(220, 38, 38, 0.10);
    color: #dc2626;
    border-left-color: #dc2626;
}

.sidebar-group-title {
    padding: 12px 20px;
    color: #4b5563;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-dropdown {
    padding-left: 20px;
    background: rgba(0, 0, 0, 0.03);
}

.sidebar-dropdown .sidebar-item {
    padding-left: 40px;
    font-size: 13px;
    font-weight: 500;
}

.sidebar-nav.open {
    transform: translateX(0);
}

.main-content-wrapper {
    margin-left: 0;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.main-content-wrapper footer {
    width: 100vw;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.compact-topbar {
    background: transparent;
    border-bottom: 0;
    padding: 0;
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    flex-shrink: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: transform 0.2s ease;
    will-change: transform;
}

.compact-topbar.compact-topbar--collapsed {
    transform: translateY(calc(-1 * var(--topbar-top-height, 0px)));
}

.topbar-top {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
}

.topbar-mobile-banner {
    padding: 0 16px 10px;
}

.topbar-mobile-banner-inner {
    width: 100%;
    height: 64px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
}

.topbar-nav {
    background: #111827;
    padding: 5px 0;
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 78rem;
    margin: 0 auto;
    padding: 0 16px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.topbar-logo {
    display: block;
    height: 44px;
    width: auto;
}

.topbar-nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    max-width: 100%;
}

.topbar-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 10px;
    background: transparent;
    border: 0;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

@media (min-width: 992px) {
    .topbar-nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 0;
    }

    .topbar-nav-link {
        flex: 1 1 0;
        justify-content: center;
    }
}



.topbar-nav-link:hover {
    background: linear-gradient(to right, var(--theme-primary), var(--theme-secondary));
    color: #fff;
}

.topbar-nav-link-active {
    background: linear-gradient(to right, var(--theme-primary), var(--theme-secondary));
}

.topbar-nav-link-newsletter {
    background: linear-gradient(90deg, #ff0000, #ff7a00, #ffe600, #00d084, #00c2ff, #8a2be2, #ff0000);
    background-size: 300% 100%;
    animation: newsletterGradient 2.2s linear infinite, newsletterGlow 1.8s ease-in-out infinite;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.topbar-nav-link-newsletter:hover {
    background: linear-gradient(90deg, #ff0000, #ff7a00, #ffe600, #00d084, #00c2ff, #8a2be2, #ff0000);
    background-size: 300% 100%;
    color: #fff;
    opacity: 1;
}

@keyframes newsletterGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes newsletterGlow {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 8px 18px rgba(255, 0, 0, 0.22), 0 0 0 rgba(0, 0, 0, 0);
    }
    50% {
        transform: translateY(-1px) scale(1.02);
        box-shadow: 0 12px 26px rgba(255, 0, 0, 0.34), 0 0 18px rgba(0, 194, 255, 0.22);
    }
}

@media (prefers-reduced-motion: reduce) {
    .topbar-nav-link-newsletter {
        animation: none;
    }
}

@media (max-width: 991.98px) {
    .topbar-content {
        /* flex-direction: column; */
        align-items: stretch;
        gap: 10px;
    }

    .topbar-right {
        justify-content: space-between;
    }

    .topbar-nav-links {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 6px;
    }

    .topbar-nav-links::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
}

.topbar-menu {
    gap: 6px;
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.topbar-link:hover {
    background: #f3f4f6;
    color: #111827;
}


.tradingview-widget-container {
    padding-top: calc(var(--topbar-expanded-height, 60px) + 30px);
}

.content-with-ads {
    display: flex;
    flex: 1;
    min-height: 0;
    margin-top: var(--topbar-expanded-height, 60px);
}

/* TradingView Widget - push below fixed header */
.main-content-wrapper > .w-100.bg-white:first-of-type {
    margin-top: var(--topbar-expanded-height, 60px) !important;
}

body.topbar-collapsed .tradingview-widget-container {
    padding-top: calc(var(--topbar-collapsed-height, 60px) + 30px);
}

body.topbar-collapsed .content-with-ads {
    margin-top: var(--topbar-collapsed-height, 60px);
}

body.topbar-collapsed .main-content-wrapper > .w-100.bg-white:first-of-type {
    margin-top: var(--topbar-collapsed-height, 60px) !important;
}

.main-content-area {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.vertical-ads-column {
    width: 0;
    flex: 0 0 0;
    flex-shrink: 0;
    position: relative;
    pointer-events: none;
}

.vertical-ads-column .sticky-top {
    position: fixed;
    top: 80px;
    right: 0;
    width: 300px;
    padding: 16px;
    z-index: 50;
    background: transparent;
    pointer-events: auto;
}

.vertical-ads-column-left .sticky-top {
    left: 0;
    right: auto;
}


.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-btn {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.action-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.action-btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    color: #fff;
}

.action-btn.bg-gradient-custom {
    background: linear-gradient(to right, var(--theme-primary), var(--theme-secondary));
    color: #fff;
    border: none;
}

.action-btn.bg-gradient-custom:hover {
    background: linear-gradient(to right, var(--theme-primary), var(--theme-secondary));
    opacity: 0.9;
    color: #fff;
}

.mobile-sidebar-toggle {
    display: inline-flex;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
}

.mobile-sidebar-toggle:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}


/* ============================================
   CONSOLIDATED MEDIA QUERIES
   All responsive styles organized by breakpoint
   ============================================ */

/* ============================================
   MAX-WIDTH: 360px
   ============================================ */
@media (max-width: 360px) {
    .recaptcha-container .g-recaptcha {
        transform: scale(0.8);
    }
}

/* ============================================
   MAX-WIDTH: 480px
   ============================================ */
@media (max-width: 480px) {
    .recaptcha-container .g-recaptcha {
        transform: scale(0.9);
    }
}

/* ============================================
   MAX-WIDTH: 576px / 575.98px
   ============================================ */
@media (max-width: 576px) {
    /* Search Modal Mobile Responsive */
    #searchModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        min-height: auto;
    }

    #searchModal .modal-dialog-centered {
        min-height: calc(100% - 1rem);
    }

    #searchModal .modal-content {
        border-radius: 0.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    #searchModal .modal-header {
        padding: 1rem;
        flex-wrap: nowrap;
    }

    #searchModal .modal-title {
        font-size: 1.1rem;
    }

    #searchModal .modal-body {
        padding: 1rem;
    }

    #searchModal .input-group {
        flex-direction: column;
        width: 100%;
    }

    #searchModal .input-group .form-control {
        border-radius: 0.375rem !important;
        width: 100% !important;
        margin-bottom: 0.5rem;
    }

    #searchModal .input-group .btn {
        border-radius: 0.375rem !important;
        width: 100%;
    }

    #newsletterModal .input-group {
        flex-direction: column;
        width: 100%;
    }

    #newsletterModal .input-group .form-control {
        border-radius: 0.375rem !important;
        width: 100% !important;
        margin-bottom: 0.5rem;
        padding: 0.75rem 1rem;
        min-height: 44px;
    }

    #newsletterModal .input-group .btn {
        border-radius: 0.375rem !important;
        width: 100%;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 575.98px) {
    footer {
        font-size: 0.9rem;
    }

    footer .small {
        font-size: 0.85rem !important;
    }

    footer .btn-sm {
        font-size: 0.8rem;
        padding: 0.25rem 0.75rem;
    }
}

/* ============================================
   MAX-WIDTH: 640px
   ============================================ */
@media (max-width: 640px) {
    .recaptcha-container .g-recaptcha {
        transform: scale(0.9);
    }

    .prose {
        font-size: 0.9rem;
    }
}

/* ============================================
   MAX-WIDTH: 768px / 767.98px
   ============================================ */
@media (max-width: 768px) {
    .recaptcha-container .g-recaptcha {
        transform: scale(0.9);
    }

    /* Mobile sidebar toggle and action buttons */
    .mobile-sidebar-toggle {
        display: inline-flex;
        justify-content: center;
        padding: 8px;
        min-width: 48px;
    }

    .mobile-sidebar-toggle i {
        width: 16px;
        height: 16px;
    }

    .action-btn-text {
        display: none;
    }

    .action-btn {
        padding: 8px;
        min-width: 40px;
        justify-content: center;
    }

    .action-btn i {
        margin: 0;
    }

    .topbar-actions {
        gap: 0.4rem;
    }
}

@media (max-width: 767.98px) {
    /* Mobile Only - Fix horizontal overflow and right side space */
    html {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
    }

    /* Force all containers to fit viewport - minimal padding */
    .max-w-7xl {
        max-width: 78rem !important;
        width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Footer specific padding on mobile */
    footer .max-w-7xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Ensure footer bottom bar has proper bottom spacing */
    footer .border-top .max-w-7xl {
        padding-bottom: 1rem !important;
    }

    /* Override Bootstrap px-6 class on mobile */
    .px-6 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .px-3 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Fix Bootstrap row on mobile */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    /* Fix Bootstrap columns padding - minimal */
    [class*="col-"] {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Ensure all main sections are contained */
    main,
    section,
    header,
    footer,
    nav {
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Hide wide elements that cause overflow - but not banner728 */
    [style*="width: 550px"]:not(.banner728-container),
    [style*="width:550px"]:not(.banner728-container) {
        display: none !important;
    }

    /* Ensure images and media don't overflow */
    img,
    video,
    iframe {
        max-width: 100% !important;
        height: auto;
    }

    /* Reduce padding on home page post cards */
    .glass.p-4 {
        padding: 0.75rem !important;
    }

    /* Reduce gap between post cards */
    .row.g-4 {
        --bs-gutter-x: 0.75rem !important;
        --bs-gutter-y: 0.75rem !important;
    }

    /* Reduce margin bottom on cards */
    .mb-4 {
        margin-bottom: 1rem !important;
    }

    /* Reduce padding on article content */
    article .py-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .banner728-container{
            display: none !important;
    }
    
    .tradingview-widget-container {
    padding-top: 66px;
    }
}

/* ============================================
   MIN-WIDTH: 768px
   ============================================ */
@media (min-width: 768px) {
    .post-thumbnail-img {
        height: 300px;
    }

    .project-review-thumbnail-img {
        height: 300px;
    }

    .project-review-thumbnail-placeholder {
        height: 300px;
    }

    .project-review-card-thumbnail {
        height: 192px;
    }

    .project-review-card-placeholder {
        height: 192px;
    }
}

/* ============================================
   MIN-WIDTH: 768px AND MAX-WIDTH: 1199.98px
   ============================================ */
@media (min-width: 768px) and (max-width: 1199.98px) {
    /* Navbar Tablet Responsive - Reduce Text Size and Padding */
    #mainNavbar .nav-link {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.35rem !important;
        white-space: nowrap;
    }

    #mainNavbar .nav-link i[data-lucide] {
        width: 13px !important;
        height: 13px !important;
    }

    #mainNavbar .dropdown {
        margin-right: 0.2rem !important;
    }

    #mainNavbar .dropdown-toggle::after {
        margin-left: 0.2rem;
    }

    #mainNavbar .btn {
        padding: 4px 8px !important;
    }
}

/* ============================================
   MAX-WIDTH: 991px / 991.98px
   ============================================ */
@media (max-width: 991.98px) {
    /* Top header - thin light border only */
    #topHeader {
        border-bottom: 1px solid #e0e0e0 !important;
        border-width: 0 0 1px 0 !important;
        border-style: solid !important;
        border-color: #e0e0e0 !important;
    }

    /* Hide navbar completely on mobile */
    #mainNavbar {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
    }
}

@media (max-width: 991px) {
    .content-with-ads {
        flex-direction: column;
    }

    .vertical-ads-column {
        width: 100%;
        max-height: none;
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }

    /* Footer Mobile Responsive Styles */
    footer .row>div {
        margin-bottom: 2rem;
    }

    footer .row>div:last-child {
        margin-bottom: 0;
    }

    footer h5 {
        font-size: 1rem;
    }

    footer ul li {
        margin-bottom: 0.75rem;
    }

    footer .d-flex.gap-3 {
        gap: 1rem !important;
    }

    main {
        padding: 0 !important;
    }
}

/* ============================================
   MIN-WIDTH: 992px
   ============================================ */
@media (min-width: 992px) {
    .header-logo {
        height: 80px;
    }

    .h3-lg {
        font-size: 1.75rem;
    }

    .h5-lg {
        font-size: 1.25rem;
    }

    .post-thumbnail-img {
        height: 400px;
    }

    .project-review-thumbnail-img {
        height: 400px;
    }

    .project-review-thumbnail-placeholder {
        height: 400px;
    }

    .project-review-sidebar {
        flex: 0 0 28%;
        max-width: 28%;
    }

    .project-review-sidebar + .col-lg-8 {
        flex: 0 0 72%;
        max-width: 72%;
    }
}

/* ============================================
   MAX-WIDTH: 1200px
   ============================================ */
@media (max-width: 1200px) {
    .vertical-ads-column {
        display: none;
    }
}

/* ============================================
   MIN-WIDTH: 1151px
   ============================================ */
@media (min-width: 1151px) {
    .sidebar-nav {
        position: fixed;
    }

    .sidebar-overlay {
        display: none;
    }
}

/* ============================================
   MAX-WIDTH: 1150px - CONSOLIDATED
   ============================================ */
@media (max-width: 1150px) {
    /* Floating vertical ad - hide on smaller screens */
    .floating-vertical-ad {
        display: none !important;
    }

    /* Sidebar close button - show on mobile */
    .sidebar-close-btn {
        display: flex;
    }

    /* Header logo - show on smaller screens */
    .topbar-logo {
        height: 40px !important;
    }

    /* Sidebar navigation - hidden by default, slides in when toggled */
    .sidebar-nav {
        transform: translateX(-100%);
        position: fixed;
    }

    .sidebar-nav.open {
        transform: translateX(0);
    }

    /* Main content wrapper - no left margin on mobile */
    .main-content-wrapper {
        margin-left: 0;
    }

    /* Fixed header adjustments for mobile */
    .compact-topbar {
        left: 0 !important;
        width: 100% !important;
    }

    /* Mobile sidebar toggle button - show on mobile */
    .mobile-sidebar-toggle {
        display: flex;
    }

    /* Sidebar overlay - show when sidebar is open */
    .sidebar-overlay.show {
        display: block;
    }

    /* Main content padding adjustment */
    main {
        padding: 0 10px;
    }
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.show {
    display: block;
}

