/**
 * Base Styles - Modern Dark Theme with Glassmorphism
 * Variables, Reset, Global Typography
 */

:root {
    /* ===== LIGHT THEME COLORS ===== */
    /* Primary Colors */
    --primary-color: #0071e3;
    /* TecHoper Blue - slightly darker for light mode */
    --primary-gradient: linear-gradient(135deg, #0071e3 0%, #0077ed 100%);
    --secondary-color: #f5f5f7;
    --accent-color: #34c759;
    /* Success Green */

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-glass: rgba(0, 0, 0, 0.05);
    --bg-glass-heavy: rgba(0, 0, 0, 0.08);

    /* Text Colors */
    --text-primary: #1d1d1f;
    /* Almost Black */
    --text-secondary: #86868b;
    --text-dark: #1d1d1f;
    --text-light: #6e6e73;
    --white: #ffffff;
    /* Keep this as white for elements that are ALWAYS white (buttons etc) */

    /* Inverted "White" for text that needs to swap */
    --text-on-bg: #1d1d1f;

    /* Border Colors */
    --border-color: #d2d2d7;
    --border-light: rgba(0, 0, 0, 0.1);

    /* Swiper Theme */
    --swiper-theme-color: var(--primary-color);
    --swiper-navigation-color: var(--primary-color);
    --swiper-pagination-color: var(--primary-color);

    /* Shadows - Adjusted for light theme */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(0, 113, 227, 0.15);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Glassmorphism */
    --glass-blur: saturate(180%) blur(20px);
    --glass-bg: rgba(255, 255, 255, 0.45);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* scrollbar-width: none; */ /* Firefox */
    /* -ms-overflow-style: none; */ /* IE/Edge */
}

body {
    font-family: 'Inter', 'Poppins', system-ui, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: clip; /* Keep horizontal clip to prevent side-scrolling */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* scrollbar-width: none; */
    /* -ms-overflow-style: none; */
}

/* Custom Scrollbar - Re-enabled for better UX */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    /* display: none; */
    background: transparent;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

/* ===== UTILITY CLASSES ===== */
.text-primary-color {
    color: var(--primary-color) !important;
}

.bg-primary-color {
    background-color: var(--primary-color) !important;
}

.bg-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

/* Glassmorphism Card */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 18px;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Scale */
.hover-scale {
    transition: var(--transition);
}

.hover-scale:hover {
    transform: scale(1.03);
}

/* Glow Effect on Hover */
.hover-glow:hover {
    box-shadow: var(--shadow-glow);
}

/* Override Bootstrap Text */
.text-dark {
    color: var(--text-primary) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

.bg-light {
    background-color: var(--bg-secondary) !important;
}

.bg-white {
    background-color: var(--bg-secondary) !important;
}

/* Container Background Override */
.container,
.container-fluid {
    background-color: transparent;
}
/**
 * Layout Styles - Modern Theme
 * Header, Footer, Navigation, Mobile Menu
 */

/* ===========================
   Header Styles - Glassmorphism
   =========================== */
.header-main {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999999 !important;
    border-bottom: none;
    padding: 10px 0;
    transition: background 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}

/* Base spacing is handled by body padding in techspecs_downloader.php logic */



.header-top {
    background: transparent;
    padding: 0;
}

.header-pill-container {
    height: 55px !important;
    display: flex !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.45) !important;
    position: relative;
    z-index: 100000000; /* Literal high value */
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08) !important;
    transition: var(--transition);
    width: calc(100% - 30px);
    /* 15px margin on each side */
    max-width: 1400px;
    margin: 15px auto 20px auto;
}

@media (max-width: 991px) {
    .header-pill-container {
        border-radius: 999px;
        margin: 10px auto;
        /* Width is inherited from global style calc(100% - 30px) */
    }
}

.header-main:hover .header-pill-container {
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 255, 255, 0.5);
}

.logo-img {
    height: 80px !important;
    width: auto !important;
    object-fit: contain;
    transition: var(--transition);
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .logo-img {
        height: 70px !important;
    }
}

/* Standardized Search Expansion - Full Pill Width on Focus (Mobile Only) */
@media (max-width: 767px) {
    .header-pill-container.search-active {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(30px) !important;
        -webkit-backdrop-filter: blur(30px) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
        height: 55px !important; /* Force same height as inactive pill */
        overflow: visible !important;
        min-height: 55px;
    }

    body.search-active .header-main,
    body.search-active .header-top,
    .header-pill-container.search-active .search-container {
        overflow: visible !important;
    }

    .header-pill-container.search-active .search-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        padding: 0 20px;
        display: flex;
        align-items: center;
        background: transparent !important;
        border-radius: 0;
        z-index: 100;
        overflow: visible !important;
    }

    .header-pill-container.search-active .search-input {
        background: transparent !important;
        padding-left: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        width: 100% !important;
        max-width: none !important;
        height: 40px !important; /* Standard height */
        line-height: normal !important;
        border: none !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        display: block !important; /* Force block when active */
    }

    .header-pill-container.search-active .search-input:focus {
        box-shadow: none !important;
        background: transparent !important;
        border: none !important;
    }

    /* V6 Fix: Hide search input by default on mobile, show only icon */
    .search-input {
        display: none;
    }

    .search-btn {
        pointer-events: auto !important;
        cursor: pointer !important;
        right: 18px !important; /* Slightly adjusted for larger hit area */
        z-index: 100 !important;
        min-width: 44px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
    }
}

/* Universal Search Visibility & Layering (All Devices) */
.header-main, 
.header-top, 
.header-pill-container, 
.search-container,
.header-main .container,
.header-main .container-fluid,
.header-main .row,
.header-main .col,
.header-main [class^="col-"] {
    overflow: visible !important;
}

.search-results {
    z-index: 2147483647 !important; /* Absolute top priority */
    background: #ffffff !important;
    position: absolute !important;
    overflow-y: auto !important; /* Enable scrolling */
    overflow-x: hidden !important;
    display: none !important; /* Hide by default */
    height: 500px !important; /* Universal height */
    max-height: 500px !important;
}

.search-results.active {
    display: block !important; /* Show when active */
}


@media (max-width: 767px) {

    .header-pill-container.search-active .logo-link,
    .header-pill-container.search-active .header-nav-inline,
    .header-pill-container.search-active #mobileMenuBtn,
    .header-pill-container.search-active .col-auto {
        display: none !important;
    }

    .header-pill-container.search-active .col.order-2 {
        position: static !important; /* Allow absolute child to fill pill */
    }
}

/* Header fit for smaller desktop (992px - 1400px) */
@media (min-width: 992px) and (max-width: 1400px) {
    .header-top .search-container {
        max-width: 100%;
        /* Removed overflow: hidden to allow dropdown to show */
    }

    .header-nav-inline {
        gap: 2px !important;
    }

    .header-nav-inline .nav-btn {
        padding: 6px 8px !important;
        font-size: 0.8rem !important;
    }

    .header-nav-inline .btn-sm {
        padding: 4px 10px !important;
        font-size: 0.78rem !important;
    }
}

/* Inline Navigation in Header (PC View) */
.header-nav-inline {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-nav-inline .nav-btn {
    white-space: nowrap;
}

/* Navigation Menu (Hidden by default - now inline) */
.header-nav {
    background: transparent;
    padding: 0;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}


.nav-btn {
    display: inline-block;
    padding: 8px 12px;
    color: var(--text-primary);
    background: transparent;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border-radius: 0;
    border: none;
    letter-spacing: -0.01em;
    position: relative;
}

.nav-btn:hover {
    background: transparent;
    color: var(--primary-color);
}

.nav-btn.active {
    color: var(--primary-color);
    background: transparent;
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    transition: transform 0.3s ease;
    border-radius: 2px;
}

.nav-btn:hover::after,
.nav-btn.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-btn i {
    margin-right: 6px;
    color: inherit;
    /* Icons inherit text color */
    font-size: 0.9em;
}

/* Logo Styles */
.logo {
    font-size: 2.5rem;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
}

.logo-tec {
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
}

.logo-hoper {
    color: var(--text-primary);
    transition: var(--transition);
}

.logo-link:hover .logo-tec {
    color: var(--text-primary);
}

.logo-link:hover .logo-hoper {
    color: var(--primary-color);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #000000 !important;
    /* Explicit black color */
    padding: 0;
    width: 44px;
    height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 99999;
    opacity: 1 !important;
    visibility: visible !important;
    margin-right: 0px !important;
    /* Pushed to absolute edge */
}

.mobile-menu-toggle:focus {
    outline: none;
}

.mobile-nav-menu {
    position: fixed !important;
    top: 80px;
    left: 15px;
    width: calc(100% - 30px);
    border-radius: 16px;
    background: #fff;
    /* Solid white background */
    box-shadow: var(--shadow);
    z-index: 2147483647 !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-bottom: none;
    /* Removed permanent border */
    pointer-events: none;
}

.mobile-nav-menu.active {
    max-height: 85vh;
    border-bottom: 1px solid #f2f2f7;
    /* Subtle divider when open */
    pointer-events: auto !important;
    overflow-y: auto;
    /* Enable scrolling for smaller screens */
    padding-bottom: 2rem;
}

.mobile-nav-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 0;
    color: var(--text-primary);
    background: transparent;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    border: none;
    border-bottom: 1px solid var(--border-light);
    margin: 0;
    border-radius: 0;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: transparent;
    color: var(--primary-color);
}

.mobile-nav-link i {
    display: inline-block;
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
}

/* Header Social Media Icons */
.social-icons .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-glass-heavy);
    color: var(--text-secondary);
    margin-left: 8px;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid var(--border-light);
}

.social-icons .social-icon:hover {
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
}

.social-icons .social-icon.facebook:hover {
    background: #1877f2;
}

.social-icons .social-icon.twitter:hover {
    background: #000000;
    border-color: #fff;
}

.social-icons .social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icons .social-icon.youtube:hover {
    background: #ff0000;
}

/* Mobile Social Icons */
.mobile-social-icons .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-glass-heavy);
    color: var(--text-secondary);
    margin: 0 6px;
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid var(--border-light);
}

.mobile-social-icons .social-icon:hover {
    color: white;
    transform: translateY(-3px);
}

.mobile-social-icons .social-icon.facebook:hover {
    background: #1877f2;
}

.mobile-social-icons .social-icon.twitter:hover {
    background: #000000;
}

.mobile-social-icons .social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* ===========================
   Footer Styles - Dark Theme
   =========================== */
.footer-main {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-primary);
    padding: 40px 0 20px;
    border-top: 1px solid var(--border-light);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
}

.footer-link i {
    color: var(--primary-color);
    margin-right: 8px;
}

.footer-link:hover,
.footer-link.active {
    color: var(--text-primary);
    background: var(--bg-glass-heavy);
}

.footer-logo {
    display: inline-block;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-glass-heavy);
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 1.2rem;
    border: 1px solid var(--border-light);
}

.footer-social-icon:hover {
    color: var(--white);
    transform: translateY(-5px);
    border-color: transparent;
}

.footer-social-icon.facebook:hover {
    background: #1877f2;
}

.footer-social-icon.twitter:hover {
    background: #000000;
    border-color: #fff;
}

.footer-social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social-icon.youtube:hover {
    background: #ff0000;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.copyright a {
    color: var(--primary-color);
}

.copyright a:hover {
    text-decoration: underline;
}

/* ===========================
   Global Ad Container
   =========================== */
.google-ads-container {
    isolation: isolate;
    z-index: 10;
    position: relative;
    width: 100%;
}

/* ===========================
   Global Max-Width Constraint
   =========================== */
@media (min-width: 1440px) {
    .container-fluid {
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 1600px) {
    .container-fluid {
        max-width: 1596px;
        margin-left: auto;
        margin-right: auto;
    }
}
/**
 * Component Styles - Modern Theme
 * Buttons, Cards, Forms, Search, Admin UI
 */

/* ===========================
   Section Headers
   =========================== */
.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ===========================
   Buttons - Modern Style
   =========================== */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #0077ed;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(41, 151, 255, 0.4);
}

/* Load More Button - Light Gray with Black Hover */
.btn-load-more {
    background: #e5e5e5;
    color: #333;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-load-more:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(41, 151, 255, 0.4);
}

/* Keep solid on Mobile/Touch devices */
@media (hover: none) {

    .btn-primary:hover,
    .btn-outline-primary:hover {
        background: var(--primary-color);
        color: white;
        transform: none;
    }
}

/* ===========================
   Search Bar - Dark Theme
   =========================== */
.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    padding: 10px 50px 10px 20px;
    /* Right padding for icon, Left normal */
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    /* Subtle border for definition */
    border-radius: 50px !important;
    /* Pill shape */
    background: transparent !important;
    /* Transparent to match header pill */
    box-shadow: none !important;
    color: var(--text-primary);
    font-size: 0.95rem;
    width: 100%;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    background: transparent !important;
    color: var(--text-primary);
    box-shadow: none !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    position: absolute;
    right: 15px;
    left: auto;
    /* Icon on right */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    outline: none;
    padding: 0;
    cursor: default;
    /* Icon is decorative mostly */
    color: var(--text-secondary);
    transition: var(--transition);
    pointer-events: none;
    /* Let clicks pass through to input focus */
    font-size: 1.2rem;
}

.search-btn:hover {
    color: var(--text-secondary);
}

/* Search Dropdown - Dark Glassmorphism */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    /* Ensure full width */
    background: #ffffff !important;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-top: 10px !important; /* Standardized gap for aesthetic */
    max-height: 430px;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    z-index: 2147483647 !important;
    padding-right: 5px !important; /* Keep scrollbar away from the border edge */
}

@media (min-width: 768px) {
    .search-results {
        width: 600px !important;
        min-width: 600px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        border: 1px solid rgba(0,0,0,0.1) !important;
        box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
        border-radius: 20px !important;
    }
}

@media (max-width: 767px) {
    .header-main .search-results,
    .search-results {
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        margin-top: 0 !important;
        border-radius: 20px !important;
    }
}

.search-results.active {
    display: block;
}

.search-result-section {
    padding: 10px;
}

.search-result-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-result-title i {
    color: var(--primary-color);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--bg-glass-heavy);
}

.search-result-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 15px;
    border-radius: 8px;
    background: transparent;
    padding: 0;
}

.search-result-image.brand-logo {
    background: transparent;
    border: none;
    padding: 0;
}

.search-result-info h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: var(--text-primary);
}

.search-result-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 3px 0 0 0;
}

/* ===========================
   Hero Card - Dark Theme
   =========================== */
.hero-card {
    background: var(--bg-primary);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 480px;
    display: flex;
    flex-direction: row;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Re-introduced subtle border */
}

.hero-card .row.g-0 {
    height: 100%;
    width: 100%;
}

.hero-card .col-md-6 {
    height: 100%;
}

/* V5 Fix: Global Container Rounding (PC/Tablet/Mobile Base) */
.hero-card-link {
    border-radius: 18px;
    overflow: hidden;
    display: block;
    background: #ffffff;
}

/* Carousel Inner: NO border-radius (card handles its own rounding) */
.carousel-inner {
    overflow: visible;
    display: block;
    background: transparent;
}

/* Carousel Items: NO border-radius (hero-card handles its own rounding) */
.carousel-item {
    overflow: hidden;
    background: #ffffff;
}

.hero-image {
    height: 100% !important;
    width: 100%;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    /* Fix baseline offset */
    transition: transform 0.5s ease;
    object-position: center;
}

.hero-card-link:hover .hero-image img {
    transform: scale(1.05);
}

.hero-content {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.hero-card-link:hover .hero-title {
    color: #000;
    /* Stay black on hover */
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-meta {
    display: flex;
    gap: 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.hero-date i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* ===========================
   News Card - Dark Theme
   =========================== */
.news-card {
    background: var(--bg-primary);
    border-radius: 18px;
    overflow: hidden; /* Restore hidden overflow to clip zoom */
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
}

.news-card:hover {
    z-index: 10;
    background: #ffffff;
}

.news-image {
    height: 280px;
    overflow: hidden; /* Clip the internal zoom */
    position: relative;
    z-index: 2;
    border-radius: 18px 18px 0 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.news-card:hover .news-image img {
    transform: scale(1.1); /* The "Z-axis" pop within the div */
}

.news-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    transition: var(--transition);
    min-height: 52px;
}

.news-card:hover .news-title {
    color: #000;
    /* Stay black on hover */
}

.news-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.news-date i,
.news-views i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* ===========================
   Device Card - Dark Theme
   =========================== */
.tec-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%; /* Ensure card fills the swiper slide width */
}

.latestMobilesSwiper,
.upcomingMobilesSwiper {
    padding: 20px 0 30px; /* Standard bottom padding */
    position: relative;
}

/* Ensure sections containing these swipers don't leak horizontally */
.latest-devices-section,
.upcoming-devices-section {
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Clean scrollbar positioning */
.latestMobilesSwiper, .upcomingMobilesSwiper {
    padding-bottom: 40px !important;
    overflow: visible !important;
}

.latestMobilesSwiper .swiper-scrollbar,
.upcomingMobilesSwiper .swiper-scrollbar {
    position: relative !important;
    bottom: -10px !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: rgba(0, 0, 0, 0.05) !important;
    margin-top: 20px !important;
}

.latestMobilesSwiper .swiper-scrollbar-drag,
.upcomingMobilesSwiper .swiper-scrollbar-drag {
    background: #000000 !important;
}

.latestMobilesSwiper .swiper-slide,
.upcomingMobilesSwiper .swiper-slide {
    display: flex !important;
    height: auto !important;
    /* Swiper handles width automatically based on slidesPerView */
    /* Ensure all slides in a row have equal height */
}

.tec-card {
    background: var(--bg-secondary);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100% !important;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    flex: 1;
}

@media (hover: hover) and (pointer: fine) {
    .tec-card:hover {
        transform: scale(1.02);
        background: #ffffff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        z-index: 10;
    }
}

.tec-img-wrapper {
    position: relative;
    height: 200px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 18px 18px 0 0;
    /* Match card top corners */
}

.tec-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}



.tec-card-body {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tec-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
    /* Reduced from 2px */
    min-height: 58px;
    /* Reduced from 42px */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
}

@media (hover: hover) and (pointer: fine) {
    .tec-card:hover .tec-card-title {
        color: #000;
        /* Stay black on hover */
    }
}

/* ===========================
   Admin Components - Dark Theme
   =========================== */
.admin-container {
    background: var(--bg-primary);
    min-height: 100vh;
}

.admin-header {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.admin-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-nav-btn {
    padding: 10px 20px;
    background: var(--bg-glass-heavy);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    transition: var(--transition);
}

.admin-nav-btn:hover,
.admin-nav-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.admin-section {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
}

.admin-section h2 {
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.table-actions {
    display: flex;
    gap: 5px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* ===========================
   Forms - Dark Theme
   =========================== */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-control,
.form-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 12px 16px;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-secondary);
    border-color: #ccc;
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

/* ===========================
   Tables - Dark Theme
   =========================== */
.table {
    color: var(--text-primary);
}

.table thead th {
    background: var(--bg-glass-heavy);
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.table tbody td {
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: var(--bg-glass);
}

.table-hover tbody tr:hover {
    background: var(--bg-glass-heavy);
}

/* ===========================
   Ads - Dark Theme
   =========================== */
.google-ads-banner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    position: relative;
}

.google-ads-banner::before {
    content: none;
}

.header-banner-ad {
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 15px 0;
}

.footer-banner-ad {
    margin-top: 30px;
    margin-bottom: 0;
}

.google-ads-inline {
    margin: 30px 0;
    padding: 20px 0;
}

.compare-bottom-ad {
    background: transparent;
    margin-top: 40px;
}

/* ===========================
   Pagination - Dark Theme
   =========================== */
.pagination .page-link {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--bg-glass-heavy);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* ===========================
   Badges - Dark Theme
   =========================== */
.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.75rem;
}

.badge.bg-primary {
    background: var(--primary-color) !important;
}

.badge.bg-success {
    background: var(--accent-color) !important;
}

.badge.bg-secondary {
    background: var(--bg-glass-heavy) !important;
    color: var(--text-secondary);
}

/* ===========================
   Alerts - Dark Theme
   =========================== */
.alert {
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.alert-success {
    background: rgba(48, 209, 88, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.alert-danger {
    background: rgba(255, 69, 58, 0.1);
    border-color: #ff453a;
    color: #ff453a;
}

.alert-warning {
    background: rgba(255, 159, 10, 0.1);
    border-color: #ff9f0a;
    color: #ff9f0a;
}

.alert-info {
    background: rgba(41, 151, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ===========================
   Cards (Bootstrap Override)
   =========================== */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 18px;
}

.card-header {
    background: var(--bg-glass-heavy);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.card-body {
    color: var(--text-primary);
}

.card-footer {
    background: var(--bg-glass);
    border-top: 1px solid var(--border-light);
}

/* ===========================
   Modal - Dark Theme
   =========================== */
.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
}

.modal-header {
    border-bottom: 1px solid var(--border-light);
}

.modal-header .modal-title {
    color: var(--text-primary);
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-body {
    color: var(--text-primary);
}

.modal-footer {
    border-top: 1px solid var(--border-light);
}

/* ===========================
   Dropdown - Dark Theme
   =========================== */
.dropdown-menu {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.dropdown-item {
    color: var(--text-secondary);
    transition: var(--transition);
    padding: 10px 18px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--bg-glass-heavy);
    color: var(--text-primary);
}

/* ===========================
   Device Highlights - Universal
   =========================== */
.specs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Increased gap for better readability */
    width: 100%;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.spec-item i {
    width: 22px;
    /* Slightly larger icons */
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 15px;
    /* Match font size */
    margin-top: 2px;
    flex-shrink: 0;
}

.spec-item span {
    flex: 1;
    font-weight: 400;
    /* Made thin as requested */
    color: var(--text-primary, #1d1d1f);
}

.highlights-header-unified {
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary, #666);
    display: none !important;
    /* Hidden as per user request */
}

/* Brand Logo Inline for Headers */
.brand-logo-inline {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-right: 15px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .spec-item {
        font-size: 14px !important;
        gap: 10px;
    }

    .spec-item i {
        width: 20px;
        height: 20px;
        font-size: 13px;
    }

    .brand-logo-inline {
        height: 30px;
        margin-right: 10px;
    }
}

/* For specs.php hero alignment */
.specs-highlight-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--specs-border);
}

.specs-highlight-row:last-child {
    border-bottom: none;
}

/* ===========================
   Premium Device Card (Upcoming/Product List)
   =========================== */
.premium-device-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f2f2f7;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.premium-device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.pdc-header {
    padding: 22px 22px 12px;
}

.pdc-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.2;
}

.pdc-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdc-body {
    display: flex;
    padding: 10px 22px 10px 10px;
    /* Reduced left padding from 22px to 10px */
    gap: 22px;
    flex: 1;
}

.pdc-img-column {
    flex: 0 0 240px;
    /* Increased from 210px */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Aligned to left */
    background: #ffffff;
    border-radius: 14px;
    padding: 15px 15px 15px 0;
    /* Removed left padding to push image to edge */
}

.pdc-img-column img {
    max-width: 100%;
    max-height: 280px;
    /* Increased from 220px */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.premium-device-card:hover .pdc-img-column img {
    transform: scale(1.05);
}

.pdc-badge-5g {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1d1d1f;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.pdc-specs-column {
    flex: 1;
}

.pdc-footer {
    padding: 15px 22px 22px;
    display: flex;
    gap: 15px;
    background: #fdfdfe;
    border-top: 1px solid #f2f2f7;
}

/* Premium Buttons */
.btn-premium-buy {
    background: #FFC107;
    color: #000;
    border: none;
    font-weight: 700;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.2s;
    font-size: 1rem;
    text-decoration: none;
}

.btn-premium-buy:hover {
    background: #ffb100;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
    color: #000;
}

.btn-premium-specs {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 700;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    transition: all 0.2s;
    font-size: 1rem;
    text-decoration: none;
}

.btn-premium-specs:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb, 37, 99, 235), 0.3);
}

@media (max-width: 575px) {
    .premium-device-card {
        margin-bottom: 20px;
    }

    .pdc-header {
        padding: 18px 18px 10px;
    }

    .pdc-body {
        gap: 15px;
        padding: 5px 18px 15px 5px;
        /* Reduced mobile left padding */
    }

    .pdc-img-column {
        flex: 0 0 160px;
        /* Increased from 140px */
        padding: 10px 10px 10px 0;
        justify-content: flex-start;
    }

    .pdc-title {
        font-size: 1.2rem;
    }

    .btn-premium-buy,
    .btn-premium-specs {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .pdc-footer {
        padding: 15px 18px 18px;
        gap: 10px;
    }
}
/**
 * Page Specific Styles - Modern Theme
 * Home, Specs, Compare, Brands, News
 */

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    padding: 40px 0;
    background: var(--bg-primary);
}

/* Hero Slider Controls */
#heroSlider .carousel-control-prev,
#heroSlider .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    /* Darker background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    /* Full opacity */
    transition: var(--transition);
    color: #fff;
    /* White icon */
}

#heroSlider .carousel-control-prev {
    left: 20px;
}

#heroSlider .carousel-control-next {
    right: 20px;
}

#heroSlider .carousel-control-prev:hover,
#heroSlider .carousel-control-next:hover {
    background: #000;
    border-color: #000;
    opacity: 1;
}

/* ===========================
   News Hero Section
   =========================== */
.news-hero-wrapper .hero-card {
    flex-direction: column !important;
    height: 100% !important;
    border: none !important;
    border-radius: 12px !important;
    position: relative !important;
    overflow: hidden !important;
}

.news-hero-wrapper .hero-card img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease;
    z-index: 1;
}

.news-hero-wrapper .hero-overlay {
    z-index: 2;
}

.news-hero-wrapper .hero-card:hover img {
    transform: scale(1.05);
}

.news-hero-wrapper .hero-overlay {
    z-index: 2;
}

.news-hero-wrapper .hero-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: background 0.3s ease;
}

.news-hero-wrapper .hero-card:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

/* Indicators - Positioned Below the Card */
#heroSlider {
    position: relative;
    padding-bottom: 20px;
    /* Room for indicators below the card */
    overflow: visible !important;
    /* Indicators must not be clipped */
}

#heroSlider .carousel-indicators {
    bottom: 0;
    /* Sit in the padding zone below the card */
    margin-bottom: 0;
    z-index: 5;
}

/* Indicators */
#heroSlider .carousel-indicators [data-bs-target] {
    background-color: rgba(0, 0, 0, 0.3);
    /* Faded gray for inactive */
    opacity: 1;
    height: 4px;
    border-radius: 2px;
    border: none;
    margin: 0 4px;
    transition: all 0.3s ease;
}

#heroSlider .carousel-indicators .active {
    background-color: #000;
    /* Dark black for active */
    opacity: 1;
    width: 35px;
    /* Elongated active indicator */
}

/* ===========================
   Latest Devices Section
   =========================== */
.latest-devices-section {
    background: var(--bg-primary);
    padding: 50px 0;
}

.latest-devices-section .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.latest-devices-section .tec-slider-container {
    margin: 0 auto;
    max-width: 100%;
}

.mobile-news-section {
    background: var(--bg-primary);
    padding: 50px 0;
}

/* ===========================
   Compare Page - Dark Theme
   =========================== */
.compare-section {
    background: var(--bg-primary);
    overflow-x: hidden !important;
    padding: 40px 0;
}

.compare-select-box {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 18px;
    border: 1px solid var(--border-light);
    position: relative;
    height: 100%;
}

.compare-select-box label {
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    color: var(--text-primary);
}

.compare-search {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    width: 100%;
    background: var(--bg-glass);
    color: var(--text-primary);
    transition: var(--transition);
}

.compare-search::placeholder {
    color: var(--text-secondary);
}

.compare-search:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.2);
    outline: none;
}

.compare-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-height: 365px;
    overflow-y: auto;
    display: none;
    z-index: 1050;
}

.compare-search-results.active {
    display: block;
}

.compare-search-results .search-result-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.compare-search-results .search-result-item:hover {
    background: var(--bg-glass-heavy);
}

.compare-search-results .search-result-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 8px;
    background: var(--bg-glass);
    padding: 5px;
}

.compare-search-results .search-result-info h6 {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.compare-search-results .search-result-info p {
    color: var(--text-secondary);
    font-size: 12px;
}

.selected-mobile {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    margin-top: 10px;
    padding: 5px;
}

.selected-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    width: 100%;
    background: var(--bg-glass);
    border-radius: 12px;
    position: relative;
    text-align: center;
}

.selected-item img {
    width: auto;
    max-width: 100%;
    height: 350px;
    object-fit: contain;
}

@media (min-width: 1024px) {
    .selected-item img {
        height: 300px;
    }
}

.selected-item span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.compare-device-name {
    padding-right: 25px;
    /* Prevent text overlap with the remove cross button */
    width: 100%;
}

.btn-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    color: #999;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: var(--transition);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5;
}

.btn-remove:hover {
    background: none;
    color: #333;
}

/* PC view: move cross slightly left */
@media (min-width: 992px) {
    .btn-remove {
        right: 12px;
        top: 4px;
    }
}

/* Tablet view: move cross up */
@media (min-width: 768px) and (max-width: 991px) {
    .btn-remove {
        top: 4px;
    }
}

/* Mobile view: move cross even higher to avoid name interference */
@media (max-width: 767px) {
    .btn-remove {
        top: -10px;
    }
}

.compare-results .spec-table {
    table-layout: fixed;
    width: 100%;
}

.spec-category {
    background: var(--bg-glass-heavy);
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* ===========================
   Specs Page - Dark Theme
   =========================== */
.specs-section {
    background: var(--bg-primary);
}

.specs-header {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 18px;
    border: 1px solid var(--border-light);
    text-align: center;
    margin-bottom: 20px;
}

.specs-image img {
    max-height: 400px;
    object-fit: contain;
}

.mobile-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.mobile-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mobile-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.mobile-release {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.quick-specs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-glass-heavy);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.quick-spec-item i {
    color: var(--primary-color);
}

/* TecHoper Specs Table - Dark Theme */
.tec-specs-section {
    background: var(--bg-primary);
    padding: 20px 0;
    min-height: 100vh;
}

.spec-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.spec-section.compare-search-section {
    overflow: visible !important;
}

.spec-section-title {
    background: var(--primary-color);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 12px 20px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid var(--border-light);
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table td {
    padding: 12px 20px;
    vertical-align: top;
}

.spec-label {
    width: 180px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-glass);
    border-right: 1px solid var(--border-light);
    font-size: 13px;
}

.spec-value {
    color: var(--text-primary);
    font-size: 13px;
}

@media (min-width: 992px) {

    .spec-label,
    .spec-value {
        font-size: 14px;
        line-height: 22px;
    }
}

/* ===========================
   Brands Page - Dark Theme
   =========================== */
.brands-section {
    background: var(--bg-primary);
    padding: 50px 0;
}

.brand-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 18px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.brand-card:hover {
    transform: scale(1.02);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.brand-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.brand-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.brand-placeholder {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.brand-card:hover .brand-name {
    color: #000;
    /* Stay black on hover */
}

.brand-layout-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    align-items: flex-start;
}

.brand-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.brand-main-content {
    flex: 1;
    min-width: 0;
}

.brand-mobile-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.brand-ad-item {
    background: var(--bg-glass);
    border: 1px dashed var(--border-color);
    height: 600px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.brand-device-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.brand-device-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-device-item:hover {
    transform: scale(1.02);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.brand-device-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
}

.brand-device-image {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 280px;
    padding: 20px;
}

.brand-device-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-device-info {
    padding: 18px;
    text-align: center;
}

.brand-device-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-device-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
}

.brand-device-actions {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
    justify-content: center;
}

.brand-btn {
    flex: 1;
    min-width: 70px;
    padding: 8px 12px;
    font-size: 0.75rem;
    text-align: center;
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.brand-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Sidebar Latest News Item Hover */
.sidebar-widget .related-news-list a {
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-widget .related-news-list a:hover {
    background: #f5f5f5;
}

/* Pagination - Centered, Gray/Black Theme */
.brand-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.pagination.brand-pagination .page-item .page-link {
    padding: 10px 20px;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    border-radius: 8px;
    margin: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination.brand-pagination .page-item.active .page-link {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

.brand-pagination .page-link:hover:not(.active) {
    background: #f0f0f0;
    color: #000000 !important;
}

/* Mobile Responsive Pagination */
@media (max-width: 767px) {
    .pagination-container {
        margin: 30px 0;
        padding: 15px 0;
        border-top: 1px solid var(--border-light);
        border-bottom: 1px solid var(--border-light);
        background: #fafafa;
    }

    .brand-pagination .page-link {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 40px;
        height: 40px;
        background: #ffffff !important;
        border: 1px solid #000000;
    }
    
    .brand-pagination .page-link span {
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .brand-pagination {
        gap: 3px;
    }

    .brand-pagination .page-link {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 35px;
        height: 35px;
    }
    
    /* Hide text part of "Prev" and "Next" on very small screens */
    .brand-pagination .page-item:first-child .page-link span,
    .brand-pagination .page-item:last-child .page-link span {
        font-size: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .brand-pagination .page-item:first-child .page-link span::before {
        content: "\00ab"; /* << symbol */
        font-size: 18px;
        line-height: 1;
    }
    
    .brand-pagination .page-item:last-child .page-link span::after {
        content: "\00bb"; /* >> symbol */
        font-size: 18px;
        line-height: 1;
    }
}

/* ===========================
   News Pages - Dark Theme
   =========================== */
.news-detail-section {
    background: #ffffff;
    padding: 50px 0;
}

.news-article {
    background: #ffffff;
    padding: 40px;
    border-radius: 18px;
    border: none;
}

/* ===========================
   Side-by-Side Images (Responsive)
   =========================== */
.sbs-image-container,
.news-detail-section [style*="display: flex"][style*="gap: 8px"],
.news-content [style*="display: flex"][style*="gap: 8px"],
.news-article-content [style*="display: flex"][style*="gap: 8px"] {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    margin: 30px 0 !important;
    align-items: stretch !important;
    width: 100% !important;
    flex-wrap: wrap !important;
}

.sbs-image-item,
.sbs-image-container > div,
.news-content [style*="display: flex"][style*="gap: 8px"] > div {
    flex: 1 1 300px !important; /* Allow wrapping on small screens */
    min-width: 0 !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    background: #f8f9fa !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.sbs-image-item:hover,
.sbs-image-container > div:hover,
.news-content [style*="display: flex"][style*="gap: 8px"] > div:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

.sbs-image-item img,
.sbs-image-container > div img,
.news-content [style*="display: flex"][style*="gap: 8px"] > div img {
    width: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Universal Responsive Stacking for Mobile (Under 768px) */
@media (max-width: 767px) {
    .sbs-image-container,
    .news-detail-section [style*="display: flex"][style*="gap: 8px"],
    .news-content [style*="display: flex"][style*="gap: 8px"],
    .news-article-content [style*="display: flex"][style*="gap: 8px"] {
        flex-direction: column !important; /* Force vertical stack! */
        gap: 20px !important;
    }
    
    .sbs-image-item,
    .sbs-image-container > div,
    .news-content [style*="display: flex"][style*="gap: 8px"] > div {
        width: 100% !important;
        flex: none !important;
    }

    .sbs-image-item img,
    .sbs-image-container > div img,
    .news-content [style*="display: flex"][style*="gap: 8px"] > div img {
        height: auto !important; /* Allow natural ratio on mobile stack */
        min-height: 250px !important;
    }
}

/* Ensure content tables are clean */
.news-article-content table,
.news-content table {
    border: none !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

.news-article-content td,
.news-content td,
.news-content th,
.news-content tr {
    border: none !important;
}

.news-category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.news-article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    /* Ensure black text on white bg */
    margin-bottom: 15px;
}

.news-article-subtitle {
    font-size: 1.3rem;
    color: #333333;
    /* Dark gray text */
    margin-bottom: 20px;
}

.news-article-meta {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555555;
    /* Medium gray text */
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--primary-color);
}

.news-featured-image {
    border-radius: 8px;
    /* Standardize radius */
    overflow: hidden;
}

.news-article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #000000;
    /* Ensure black text */
}

.news-share h5 {
    font-weight: 600;
    margin-bottom: 15px;
    color: #000000;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-share {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    background-color: #6c757d;
    /* Default gray */
}

.btn-share.facebook {
    background-color: #1877f2;
}

.btn-share.twitter {
    background-color: #000000;
}

.btn-share.whatsapp {
    background-color: #25d366;
}

.btn-share:hover {
    transform: translateY(-3px);
}

/* ===========================
   Sidebar - Dark Theme
   =========================== */
.sidebar-widget {
    background: var(--bg-secondary);
    padding: 25px;
    border-radius: 18px;
    border: 1px solid var(--border-light);
    margin-bottom: 25px;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000 !important;
    /* Black underline */
    display: inline-block;
    /* Underline only under text */
}

.related-news-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    background: #fff;
    /* White background */
    border: 1px solid var(--border-light);
}

.related-news-item:hover {
    background: #fff;
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.related-news-image {
    width: 100px !important;
    height: 60px !important;
    min-width: 100px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.related-news-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.related-sidebar-device-image {
    width: 60px !important;
    height: 80px !important;
    min-width: 60px;
    flex-shrink: 0;
    background: transparent !important;
    border-radius: 0;
    overflow: hidden;
}

.related-sidebar-device-image img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.related-news-content h6 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.related-news-content p {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Prevent date from turning blue on hover */
.related-news-item:hover .related-news-date,
.related-news-item:hover span {
    color: var(--text-secondary) !important;
}

/* ===========================
   Tec Slider - Dark Theme
   =========================== */
.tec-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.tec-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px 20px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tec-slider-track::-webkit-scrollbar {
    display: none;
}

.tec-slide-item {
    flex: 0 0 auto;
    width: calc(50% - 10px);
}

/* Mobile Card - Dark Theme */
.mobile-card {
    background: var(--bg-secondary);
    border-radius: 18px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.mobile-image-wrapper {
    background: var(--bg-glass);
    padding: 30px;
    text-align: center;
}

.mobile-image {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.mobile-basic-info {
    padding: 20px;
}

.release-info,
.price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.release-info .label,
.price-info .label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.release-info .value,
.price-info .value {
    font-weight: 600;
    color: var(--text-primary);
}

.price-info .value.price {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.key-specs-summary {
    margin: 20px 0;
    padding: 15px;
    background: var(--bg-glass);
    border-radius: 10px;
}

.key-spec {
    display: flex;
    align-items: center;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.key-spec .spec-icon {
    margin-right: 10px;
    color: var(--primary-color);
}

.affiliate-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.affiliate-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.affiliate-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.amazon-btn {
    background: #ff9900;
    color: white;
}

.amazon-btn:hover {
    background: #e68a00;
    transform: translateY(-2px);
}

.flipkart-btn {
    background: #2874f0;
    color: white;
}

.flipkart-btn:hover {
    background: #1e5bb8;
    transform: translateY(-2px);
}

.affiliate-disclaimer {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
}

/* ===========================
   Privacy & About Pages
   =========================== */
.privacy-text h3,
.about-text h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.privacy-text p,
.about-text p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.privacy-text ul,
.about-text ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.privacy-text li,
.about-text li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* ===========================
   Homepage Brand Cards
   =========================== */
.home-brand-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 18px;
}

.home-brand-card:hover {
    transform: scale(1.02);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    z-index: 10;
}

.latest-devices-section .tec-card-title {
    font-size: 1rem !important;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
}

.latest-devices-section .tec-card-link {
    text-decoration: none;
}

/* ===========================
   White Background Overrides (User Request)
   =========================== */
.brand-card,
.brand-device-item,
.sidebar-widget,
.news-card,
.tec-card,
.home-brand-card {
    background: #fff !important;
}

.brand-detail-section,
.brands-section,
.latest-devices-section,
.mobile-news-section,
.top-brands-section {
    background: #fff !important;
}

/* Sidebar News Items Hover Effect */
.transition-hover {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.transition-hover:hover {
    background-color: #f8f9fa;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.transition-hover h6 {
    transition: color 0.3s ease;
}

.transition-hover:hover h6 {
    color: var(--primary-color);
}

/* Strict Sizing for Sidebar News Images */
.sidebar-news-img {
    width: 100px !important;
    height: 60px !important;
    min-width: 100px !important;
    object-fit: cover !important;
    border-radius: 6px;
}

/* Hybrid List View Styles */
.product-card-list {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

.product-card-list:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.product-img-custom {
    height: 280px;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}

.product-card-list:hover .product-img-custom {
    transform: scale(1.05);
}

.btn-container {
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn-container .btn {
    flex: 1;
    white-space: nowrap;
}

/* Specs Vertical List (New Design) */
.specs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.spec-item {
    font-size: 0.9rem;
    color: #444;
    display: flex;
    align-items: center;
    line-height: 1.4;
    font-weight: 500;
}

.spec-item i {
    width: 28px;
    font-size: 1.1rem;
    color: #888;
    margin-right: 12px;
    flex-shrink: 0;
    text-align: center;
}

/* ===========================
   Finder Results - List View Redesign
   =========================== */
.product-card-list {
    border: 1px solid #eee !important;
    border-radius: 12px;
    background: #fff !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
}

.product-card-list:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-4px);
    border-color: #ddd !important;
}

/* 3D Model Redesign */
.inline-3d-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #444;
    margin-bottom: 25px;
}

.title-bar {
    display: block;
    width: 6px;
    min-width: 6px;
    height: 28px;
    background-color: var(--primary-color, #007bff);
    border-radius: 2px;
}

.color-selection-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 25px;
    font-size: 0.95rem;
    font-weight: 500;
}

.color-text-variant {
    color: #555;
    padding: 6px 15px;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.color-text-variant:not(:last-child)::after {
    content: "|";
    margin-left: 15px;
    color: #ccc;
    font-weight: 300;
}

/* 3D Viewer Responsive Sizing */
.ratio-3d-viewer {
    --bs-aspect-ratio: 100%; /* Back to 1:1 for centered small view */
    max-width: 1000px;
    margin: 0 auto;
}

.ratio-3d-viewer iframe {
    background: transparent !important;
}

/* Increased size for 3D model */
@media (min-width: 992px) {
    .ratio-3d-viewer {
        height: 650px;
        --bs-aspect-ratio: 0; /* Override bootstrap padding-top */
    }
}

@media (max-width: 991px) and (min-width: 576px) {
    .ratio-3d-viewer {
        height: 550px;
        --bs-aspect-ratio: 0;
    }
}

@media (max-width: 575px) {
    .ratio-3d-viewer {
        height: 450px;
        --bs-aspect-ratio: 0;
        
        /* Full stretch breakout logic */
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        border-radius: 0;
    }
}

.color-text-variant:hover {
    color: #007bff;
}

.color-text-variant.active {
    background-color: #f0f0f0;
    color: #222;
    font-weight: 600;
}

.inline-3d-container .ratio {
    background: transparent !important;
}

.product-img-custom {
    height: 220px;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}

.product-card-list:hover .product-img-custom {
    transform: scale(1.05);
}

/* 3D Comparison Page Styles */
.compare-3d-page .main-content {
    background-color: #f8fafc;
}

.compare-3d-container {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    position: relative;
    margin-bottom: 30px;
}

#binkies-compare-content {
    transition: all 0.3s ease;
    height: 600px;
    border-radius: 12px;
}

.color-selector-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    border-radius: 15px;
    border: 1px solid #eee;
    padding: 1.5rem;
    height: 100%;
}

.color-selector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.color-dot-btn {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #eee;
    cursor: pointer;
    transition: all 0.2s;
    margin: 5px;
    display: inline-block;
}

.color-dot-btn.active {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .compare-3d-container {
        padding: 1rem;
    }
    #binkies-compare-content {
        height: 500px !important;
    }
}

@media (max-width: 767px) {
    #binkies-compare-content {
        height: 400px !important;
    }
}

.badge-5g {
    background-color: #000 !important;
    color: #fff !important;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.spec-item {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    line-height: 1.4;
}



.btn-store {
    background: #ffc107 !important;
    border: none !important;
    color: #000 !important;
    font-weight: 700;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.btn-store:hover {
    background: #ffb300 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.btn-specs {
    background: transparent !important;
    border: 2px solid #0d6efd !important;
    color: #0d6efd !important;
    font-weight: 700;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-specs:hover {
    background: #0d6efd !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}



@media (max-width: 991.98px) {
    .product-img-col {
        min-height: 240px;
        padding: 0.5rem !important;
        /* Reduce padding to maximize image area */
    }

    .product-img-custom {
        height: 220px;
        padding: 2px !important;
        /* Minimal padding on mobile */
    }


}



/* Specific Icon Colors */
.spec-item i.fa-microchip {
    color: #555;
}

/* Processor - Grey */
.spec-item i.fa-memory {
    color: #555;
}

/* RAM - Grey */
.spec-item i.fa-camera {
    color: #555;
}

/* Camera - Grey */
.spec-item i.fa-battery-full {
    color: #555;
}

/* Battery - Grey */
.spec-item i.fa-mobile-alt {
    color: #555;
}

/* Display - Grey */

@media (max-width: 991.98px) {
    .specs-list {
        gap: 6px;
    }

    .spec-item {
        font-size: 15px !important;
    }
}

/* Sticky Sidebar Utility */
.sticky-sidebar {
    position: sticky;
    top: 85px;
    height: fit-content;
    z-index: 10;
}

@media (max-width: 991px) {
    .sticky-sidebar {
        position: static;
    }
}

/* ===========================
   Affiliate Buttons
   =========================== */
.btn-amazon {
    background: #ff9900 !important;
    color: #000 !important;
    border: none !important;
    font-weight: 700;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
}

.btn-amazon:hover {
    background: #ffb300 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 153, 0, 0.3);
}

.btn-flipkart {
    background: #2874f0 !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.2rem;
}

.btn-flipkart:hover {
    background: #1e5bb8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 116, 240, 0.3);
}

.buy-btn-wrapper {
    flex: 1;
}

.store-btns-wrapper {
    flex: 1;
    display: flex;
    gap: 5px;
}

/* ===========================
   Strategic Ad Styles & News 2.0
   =========================== */
.native-ad-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.native-ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.native-ad-container .badge {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.ad-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Sticky Sidebar Utility */
.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    /* Adjust based on header height */
    z-index: 100;
    align-self: flex-start;
    /* Required for sticky to work in flex container */
}

/* Ensure Native Ad Card matches News Card height logic */
.news-card {
    display: flex;
    flex-direction: column;
}

.news-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-subtitle {
    flex-grow: 1;
}

/* Sub Hero Layout logic */
.sub-hero-link {
    min-height: 250px;
    /* Force height on mobile */
    width: 100%;
}

@media (min-width: 768px) {
    .sub-hero-link {
        min-height: 0 !important;
        height: calc(50% - 0.5rem) !important;
        /* Strictly half height minus half gap */
        flex: none !important;
        /* Disable flex growing/shrinking logic */
    }
}

/* Main Hero Image Responsive Height */
.main-hero-img {
    height: 100% !important;
    min-height: 250px;
}

/* Tablet (iPad/Vertical) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .news-hero-row {
        height: 380px;
        /* Compact height for tablet */
    }
}

/* Medium PC / Laptop (Matches 1024px issue) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .news-hero-row {
        height: 420px;
        /* Reduced height to keep proportions balanced */
    }
}

/* Large PC (Standard 1440px) */
@media (min-width: 1200px) {
    .news-hero-row {
        height: 500px;
    }
}

/* Base Utility for Flex Strength */
@media (min-width: 768px) {

    .news-hero-row .col-lg-8,
    .news-hero-row .col-lg-4 {
        height: 100% !important;
    }

    .main-hero-img {
        min-height: 0 !important;
    }
}

/* ===========================
   Affiliate & Buy Section (Phase 5)
   =========================== */
.specs-buy-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.affiliate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.affiliate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.amazon-btn {
    background: #FF9900;
    color: #000;
}

.flipkart-btn {
    background: #2874F0;
    color: #fff;
}

.amazon-btn:hover {
    background: #ffac33;
    color: #000;
}

.flipkart-btn:hover {
    background: #4a8bf5;
    color: #fff;
}

/* Price Table */
.price-comparison-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.price-comparison-table tr {
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
}

.price-comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.price-comparison-table td {
    padding: 12px 15px;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.price-comparison-table td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    font-weight: 600;
    border-right: none;
}

.price-comparison-table td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    text-align: right;
    border-left: none;
}

.store-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
}
/**
 * Responsive Styles
 * Media Queries and Mobile Fixes
 */

/* Top Level Resposnive */
@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }

    /* Avoid clipping search dropdown on mobile */
    .header-main, .header-top {
        overflow: visible !important;
    }

    /* Hero Card goes vertical on tablet (Mobile-like) */
    .hero-card {
        height: auto !important;
        min-height: 300px !important;
        flex-direction: column !important;
    }

    .hero-card .col-md-6 {
        height: auto !important;
    }

    .hero-image {
        height: 300px !important;
        width: 100% !important;
    }

    .hero-content {
        padding: 20px !important;
        width: 100% !important;
    }

    .hero-title {
        font-size: 1.2rem !important;
    }

    .mobile-name {
        font-size: 2rem;
    }

    .news-article-title {
        font-size: 2rem;
    }

    .specs-header {
        padding: 25px;
    }

    .about-content,
    .privacy-content {
        padding: 30px;
    }

    .brand-layout-container {
        flex-direction: column;
    }

    .brand-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }

    /* Hide Hero Slider Controls on Mobile/Tablet */
    #heroSlider .carousel-control-prev,
    #heroSlider .carousel-control-next {
        display: none !important;
    }
}

@media (max-width: 1350px) {
    .hero-card {
        height: 320px !important; 
        flex-direction: row !important;
        background: #ffffff !important;
        overflow: hidden !important;
    }

    .hero-image {
        height: 100% !important;
        width: 100% !important;
    }

    .hero-content {
        padding: 20px !important;
        width: 100% !important;
        display: flex;
        flex-direction: column;
        justify-content: center !important;
    }

    .hero-title {
        font-size: 1.3rem !important;
        font-weight: 700 !important;
        margin-bottom: 15px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        line-height: 1.3 !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        color: var(--text-secondary) !important;
        margin-bottom: 15px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 767px) {
    .nav-buttons {
        flex-wrap: wrap;
    }

    .hero-card {
        height: 420px !important; /* Increased height for better mobile visual */
        min-height: 420px !important;
        flex-direction: column !important;
        background: #ffffff !important;
        border-radius: 18px !important;
        justify-content: flex-start !important;
        overflow: hidden !important;
    }

    .hero-image {
        height: 240px !important;
        width: 100% !important;
    }

    .hero-content {
        padding: 12px 18px !important;
        width: 100% !important;
        height: 180px !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start !important;
    }

    .hero-title {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        margin-bottom: 8px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        line-height: 1.3 !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        color: var(--text-secondary) !important;
        margin-bottom: 10px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        line-height: 1.4 !important;
    }

    .hero-meta {
        margin-bottom: 15px !important;
        /* Space for pagination */
    }

    /* V4 Fix: Force Rounding on Containers (Definitive Corner Fix) */
    .hero-card-link {
        background: #ffffff !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        display: block !important;
    }

    /* Carousel Items: NO border-radius (hero-card handles rounding) */
    .carousel-item {
        overflow: hidden !important;
        background: #ffffff !important;
    }

    .nav-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* V4 Fix: Force Rounding on Containers (Cleaned Up) */
    .hero-card-link {
        background: #ffffff !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        display: block !important;
    }

    /* Ensure header stays fixed on mobile */
    .header-main {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 2147483647 !important;
    }

    /* Add padding to body to compensate for fixed header */
    /* Global padding managed in header.php */
    /* body {
        padding-top: 60px !important;
    } */

    .latestMobilesSwiper,
    .upcomingMobilesSwiper {
        padding: 5px 0 10px !important;
        padding-bottom: 20px !important;
    }

    .latestMobilesSwiper .swiper-scrollbar,
    .upcomingMobilesSwiper .swiper-scrollbar {
        margin-top: 5px !important;
    }

    .section-header {
        margin-bottom: 10px !important;
    }

    .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 5px !important;
    }

    .section-subtitle {
        margin-bottom: 10px !important;
    }

    /* Finder Widget - Reduce "Your Budget" Text Size */
    .finder-widget-section label.fs-5 {
        font-size: 1rem !important;
    }

    /* Latest Blog / Blog Page Card Adjustments */
    .news-image {
        height: 230px !important;
    }

    .news-card {
        height: auto !important;
        min-height: 400px !important;
    }

    .news-content {
        padding: 15px 20px !important;
    }
}

@media (max-width: 575px) {
    .logo {
        font-size: 1.5rem;
    }

    .social-icons {
        gap: 10px;
    }

    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .nav-btn {
        padding: 10px 15px;
    }

    .news-content {
        padding: 12px;
    }

    .news-title {
        font-size: 0.95rem;
        min-height: 40px;
    }

    .mobile-price {
        font-size: 1.5rem;
    }

    .quick-specs {
        gap: 10px;
    }

    .quick-spec-item {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .latest-devices-section .tec-card-title,
    .upcoming-devices-section .tec-card-title {
        font-size: 0.75rem !important;
        margin-bottom: 5px !important;
        min-height: 45px !important;
        -webkit-line-clamp: 3 !important;
        line-clamp: 3 !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .tec-img-wrapper {
        padding: 10px !important;
        height: 140px !important;
    }

    .tec-card-body {
        padding: 10px !important;
    }
}

/* Tec Slider Responsive */
@media (min-width: 768px) {
    .tec-slide-item {
        width: calc(33.333% - 14px);
    }
}

@media (min-width: 1200px) {
    .tec-slide-item {
        width: calc(16.666% - 17px);
    }
}

/* Social Icons */
@media (min-width: 992px) {
    .social-icons {
        display: flex !important;
        gap: 10px;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        width: auto !important;
    }
}

@media (max-width: 991.98px) {
    .social-icons {
        display: none !important;
    }
}

/* Ads Responsive */
@media (max-width: 768px) {
    .google-ads-banner {
        min-height: 50px;
        max-width: 100% !important;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .google-ads-container {
        padding: 15px 0;
    }

    .header-banner-ad,
    .footer-banner-ad {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .header-banner-ad .container-fluid,
    .footer-banner-ad .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }
}

/* Brand Grid Responsive */
/* PC/Laptop (>1024px): Uses Default 5 Columns */
@media (max-width: 1100px) {
    .brand-mobile-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet (768px - 1024px): 3 Columns, No Sidebar */
@media (max-width: 1024px) {
    .brand-mobile-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .brand-sidebar {
        display: none !important;
    }
}

/* Mobile (<768px): 2 Columns */
@media (max-width: 767px) {
    .brand-mobile-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .brand-mobile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .device-image {
        padding: 10px !important;
    }

    .device-name {
        font-size: 0.9rem;
    }
}

/* Compare Page Mobile Fixes (Jan 2026) */
@media (max-width: 768px) {

    /* Dropdown Width */
    .border-0.p-0.shadow-none.bg-transparent .position-relative {
        position: relative !important;
    }

    .compare-search-results {
        min-width: 280px;
        width: 85vw;
        max-width: 320px;
        z-index: 1060;
        max-height: 320px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    }

    input[data-position="1"]+.compare-search-results {
        left: -10vw !important;
        right: auto !important;
        transform: none !important;
    }

    input[data-position="2"]+.compare-search-results {
        right: 0 !important;
        left: auto !important;
        transform: none !important;
    }

    .compare-search-results .search-result-image {
        width: 70px !important;
        height: 70px !important;
    }

    /* Header Search - Unified Mobile/Tablet Layout (15px Side Margin) */
    .header-main .search-results {
        width: calc(100% - 30px) !important;
        left: 15px !important;
        right: 15px !important;
        transform: none !important;
        min-width: auto;
        z-index: 2147483647 !important;
        background: #ffffff !important;
        position: fixed !important; /* Force portal fix globally on small screens */
        top: 72px !important; /* Tighter gap to match pill expansion */
        border-radius: 20px !important;
        margin-top: 0 !important;
        height: 500px !important;
        overflow-y: auto !important;
    }

    .header-main .search-results .search-result-item {
        padding: 8px 12px !important;
    }

    .header-main .search-result-image {
        width: 55px !important;
        height: 55px !important;
        margin-right: 12px !important;
    }

    /* Brand Page Width */
    .brand-detail-section .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Header Logo */
    .header-top .col-3 {
        padding-right: 2px !important;
        flex: 0 0 25%;
        max-width: 25%;
    }

    .header-top .logo-link h1.logo {
        font-size: 1.1rem;
        white-space: nowrap;
    }

    .header-top .logo-link img {
        max-height: 35px !important;
    }

    .header-top .search-container {
        width: 100%;
    }

    .header-top .col-7.px-1 {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    /* Specs Nested Table */
    .spec-table-inner .spec-label {
        width: 24% !important;
        padding: 10px 20px !important;
        box-sizing: border-box;
    }

    .spec-table-inner .spec-value {
        width: 38% !important;
        padding: 10px 20px !important;
        box-sizing: border-box;
    }

    /* Compare Table */
    .compare-result .spec-table .spec-label,
    .spec-expand-wrapper .spec-table .spec-label,
    .spec-table .spec-label {
        width: 24% !important;
        min-width: 24% !important;
        max-width: 24% !important;
        padding: 10px 20px !important;
        box-sizing: border-box;
    }

    .compare-result .spec-table .spec-value,
    .spec-expand-wrapper .spec-table .spec-value,
    .spec-table .spec-value {
        width: 38% !important;
        min-width: 38% !important;
        max-width: 38% !important;
        padding: 10px 20px !important;
        box-sizing: border-box;
    }

    /* Typography */
    .compare-device-name {
        font-size: 0.95rem;
    }

    .spec-label {
        font-size: 15px;
        font-weight: 600;
    }

    .spec-value {
        font-size: 15px;
        padding: 10px;
        line-height: 1.6;
    }

    .spec-table td {
        padding: 8px 10px;
    }

    .affiliate-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (min-width: 400px) {
    .compare-device-name {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .compare-device-name {
        font-size: 1.1rem;
    }
}

/* Spec Table Specifics for Mobile */
@media (max-width: 768px) {
    .tec-specs-section {
        padding: 10px 0;
    }

    .mobile-card {
        position: static;
        margin-bottom: 20px;
    }

    .mobile-image-wrapper {
        padding: 20px;
    }

    .mobile-image {
        max-height: 200px;
    }

    .mobile-basic-info {
        padding: 15px;
    }

    .mobile-name {
        font-size: 1.2rem;
        text-align: center;
    }

    .brand-info {
        text-align: center;
    }

    .specs-title {
        font-size: 1.2rem;
        padding: 15px;
    }

    .spec-label {
        padding: 20px;
        margin: 0;
        font-size: 1.5rem;
        font-weight: 600;
    }

    .spec-section {
        margin-bottom: 25px;
        border: 2px solid #e9ecef;
        border-radius: 0;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        background: white;
        margin-left: -12px;
        margin-right: -12px;
        width: calc(100% + 24px);
        border-left: none;
        border-right: none;
    }

    .spec-section:last-child {
        margin-bottom: 0;
    }

    .spec-section-title {
        background: var(--primary-gradient);
        color: white;
        padding: 10px 20px;
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
        border-bottom: none;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .spec-table {
        width: 100%;
        border-collapse: collapse;
        margin: 0;
        background: white;
        table-layout: fixed;
    }

    .spec-label {
        font-weight: 600;
        color: #555;
        width: 22%;
        font-size: 0.9rem;
        padding: 10px 20px;
        vertical-align: top;
        background: #f8f9fa;
        border-right: 1px solid #e9ecef;
    }

    .spec-value {
        color: #000000;
        font-size: 15px;
        line-height: 1.6;
        font-weight: 400;
        padding: 10px 20px;
        width: 39%;
    }
}

/* ===========================
   SPECS PAGE MOBILE FIX
   =========================== */
/* Root level overflow fix for Tablet/Mobile to prevent right-side space */
@media (max-width: 1024px) {
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
        position: relative;
    }
}

/* SPECS PAGE MOBILE FIX */
@media (max-width: 500px) {
    /* Target specs elements directly */
    .specs-layout-container,
    .specs-hero,
    .specs-main-container,
    .tech-spec-section,
    .tech-section-header,
    .tech-section-content {
        width: 100% !important;
        max-width: 100% !important;
        /* overflow-x: hidden !important; */ /* Removed to prevent internal scrolling */
        box-sizing: border-box !important;
    }

    .specs-layout-container {
        padding: 10px 0 !important;
    }

    .specs-layout-container .container-fluid {
        padding-left: 0 !important; /* Changed from 15px to 0 for full width */
        padding-right: 0 !important;
        max-width: 100% !important;
    }

    .specs-layout-container .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    .specs-layout-container .col-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }

    .specs-layout-container .col-lg-9 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }

    .specs-main-container {
        padding: 0 !important;
    }

    .specs-hero {
        padding: 20px 15px !important;
    }

    .specs-hero .specs-main-container {
        padding: 0 !important;
    }

    .specs-hero-title {
        font-size: 20px !important;
        word-break: break-word !important;
    }

    .specs-hero-subtitle {
        font-size: 14px !important;
    }

    .specs-hero-image {
        max-width: 180px !important;
        max-height: 250px !important;
    }

    .specs-hero-btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }

    /* TecHoper spec sections - CONSISTENT HEADERS */
    .tech-spec-section {
        padding: 20px 0 !important;
        border-bottom: 1px solid #424245;
    }

    .tech-section-header {
        margin-bottom: 15px !important;
    }

    /* ALL section titles same size */
    .tech-section-title {
        font-size: 20px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }

    .tech-spec-item {
        margin-bottom: 16px !important;
        width: 100% !important;
    }

    /* Labels - consistent size */
    .tech-spec-label {
        font-size: 15px !important;
        font-weight: 600 !important;
        margin-bottom: 4px !important;
        display: block !important;
    }

    /* Values - MUST fit in container */
    .tech-spec-value {
        font-size: 15px !important;
        line-height: 1.6 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        white-space: normal !important;
        display: block !important;
        max-width: 100% !important;
    }

    .tech-spec-highlight {
        font-size: 15px !important;
        word-break: break-word !important;
    }

    .tech-spec-desc {
        font-size: 12px !important;
    }
}

/* ===========================
   TecHoper Ad System (Premium Style)
   Professional CLS-Safe Ad Containers
   =========================== */

/* Base Ad Slot Container */
.th-ad-slot {
    position: relative;
    /* Responsive Spacing Strategy - Falls back to Desktop defaults */
    margin-top: var(--d-mt, 10px);
    margin-right: var(--d-mr, auto);
    margin-bottom: var(--d-mb, 10px);
    margin-left: var(--d-ml, auto);
    /* Indestructible CSS Grid to enforce height even if AdSense injects height:auto */
    display: grid !important;
    align-items: center;
    justify-content: center;
    grid-template-columns: 100% !important;
    grid-template-rows: var(--d-h, var(--ad-h, 90px)) !important;
    
    overflow: hidden !important;
    /* Maintain min/max as fallback */
    min-height: var(--d-h, var(--ad-h, 90px)) !important;
    max-height: var(--d-h, var(--ad-h, 90px)) !important;
    max-width: var(--d-w, var(--ad-w, 100%)) !important;
    width: 100%;
    box-sizing: border-box;
    /* Clean white background to prevent flashing */
    background-color: #ffffff;
    border: 1px solid #f2f2f7;
    border-radius: 8px;
    z-index: 10;
    clear: both;
    transition: all 0.3s ease;
}

/* Premium Ad Label (Premium Style) */
.th-ad-label {
    position: absolute;
    top: 5px;
    left: 15px;
    font-size: 9px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 15;
    pointer-events: none;
    line-height: 1;
}

/* Inner wrapper for the actual ad content */
.th-ad-inner {
    position: relative;
    min-height: var(--d-h, var(--ad-h, 90px)) !important;
    max-height: var(--d-h, var(--ad-h, 90px)) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    overflow: hidden !important;
}

/* Image ads inside the container */
.th-ad-img {
    max-width: 100%;
    height: auto;
    max-height: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    object-fit: contain;
}

/* AdSense ins tag auto-sizing */
.th-ad-slot ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
    min-height: var(--d-h, var(--ad-h, 90px)) !important;
    max-height: var(--d-h, var(--ad-h, 90px)) !important;
    overflow: hidden !important;
}

/* Google ad iframe handling */
.th-ad-inner iframe {
    border: 0;
    vertical-align: bottom;
    margin: 0 auto;
}

/* Device Targeting Classes */
/* Desktop only */
.th-d { display: block; }

/* Hide on mobile (<768px) if no th-m class */
@media (max-width: 767px) {
    .th-ad-slot:not(.th-m) {
        display: none !important;
    }
    /* Mobile-specific sizing overrides */
    .th-ad-slot.th-m {
        margin-top: var(--m-mt, var(--d-mt, 10px)) !important;
        margin-right: var(--m-mr, var(--d-mr, auto)) !important;
        margin-bottom: var(--m-mb, var(--d-mb, 10px)) !important;
        margin-left: var(--m-ml, var(--d-ml, auto)) !important;
        grid-template-rows: var(--m-h, var(--ad-h, 90px)) !important;
        min-height: var(--m-h, var(--ad-h, 90px)) !important;
        max-height: var(--m-h, var(--ad-h, 90px)) !important;
        max-width: var(--m-w, var(--ad-w, 100%)) !important;
    }
    .th-ad-slot.th-m .th-ad-label {
        top: 2px;
        left: 10px;
        font-size: 8px;
    }
    .th-ad-slot.th-m .th-ad-inner {
        min-height: var(--m-h, var(--ad-h, 90px)) !important;
        max-height: var(--m-h, var(--ad-h, 90px)) !important;
    }
    .th-ad-slot.th-m ins.adsbygoogle {
        min-height: var(--m-h, var(--ad-h, 90px)) !important;
        max-height: var(--m-h, var(--ad-h, 90px)) !important;
        overflow: hidden !important;
    }

}

/* Hide on tablet (768-991px) if no th-t class */
@media (min-width: 768px) and (max-width: 991px) {
    .th-ad-slot:not(.th-t) {
        display: none !important;
    }
    /* Tablet-specific sizing */
    .th-ad-slot.th-t {
        margin-top: var(--t-mt, var(--d-mt, 10px)) !important;
        margin-right: var(--t-mr, var(--d-mr, auto)) !important;
        margin-bottom: var(--t-mb, var(--d-mb, 10px)) !important;
        margin-left: var(--t-ml, var(--d-ml, auto)) !important;
        grid-template-rows: var(--t-h, var(--ad-h, 90px)) !important;
        min-height: var(--t-h, var(--ad-h, 90px)) !important;
        max-height: var(--t-h, var(--ad-h, 90px)) !important;
        max-width: var(--t-w, var(--ad-w, 100%)) !important;
    }
    .th-ad-slot.th-t .th-ad-inner {
        min-height: var(--t-h, var(--ad-h, 90px)) !important;
        max-height: var(--t-h, var(--ad-h, 90px)) !important;
        overflow: hidden !important;
    }
    .th-ad-slot.th-t ins.adsbygoogle {
        min-height: var(--t-h, var(--ad-h, 90px)) !important;
        max-height: var(--t-h, var(--ad-h, 90px)) !important;
        overflow: hidden !important;
    }
}

/* Hide on desktop (992px+) if no th-d class */
@media (min-width: 992px) {
    .th-ad-slot:not(.th-d) {
        display: none !important;
    }
}

/* Header Banner Ad Container */
.header-banner-ad .th-ad-slot {
    margin: 5px auto;
}

/* Footer Banner Ad Container */
.footer-banner-ad .th-ad-slot {
    margin: 5px auto;
}

/* Sidebar Ad - ensure fit */
.sidebar-ad-widget .th-ad-slot {
    max-width: 100%;
}
