/**
 * Page Specific Styles - Modern Theme
 * Home, Specs, Compare, Brands, News
 */

/* ===========================
   Hero Section
   =========================== */
.hero-section {
    padding: 20px 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;
}

/* 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;
}