/* Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    /* Modern Color Palette */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Neutrals */
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --light: #f1f5f9;
    --white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);

    /* Shadows - extremely light as requested */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 12px -3px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 15px 30px -12px rgba(0, 0, 0, 0.05);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

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

    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background: #ffffff !important;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
.glass-nav {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: none;
    box-shadow: none;
    transition: var(--transition);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* Search Bar */
.input-group .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: var(--radius-full) 0 0 var(--radius-full);
}

.input-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-group .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    color: var(--white);
}

.input-group .btn-success {
    background: var(--gradient-primary);
    border: none;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    padding: 0.375rem 1rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: var(--gradient-hero);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.hero-section.page-hero {
    min-height: 250px;
    padding: 80px 0 40px;
    display: block;
}

.hero-section.page-hero .hero-subtitle {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-shape {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-weight: 600;
    border-radius: var(--radius-full);
    padding: 0.75rem 2rem;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: none;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    background: white;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.card-img-top {
    height: 240px;
    object-fit: contain;
    padding: 0.25rem;
    background: #f8fafc;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.card-text {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-footer {
    background: rgba(241, 245, 249, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
}

/* Category Cards */
.category-card {
    background: white;
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.category-card:hover .category-icon {
    color: white;
    transform: scale(1.2) rotate(10deg);
}

.category-card h6 {
    position: relative;
    z-index: 1;
    transition: var(--transition);
    font-weight: 600;
}

.category-card:hover h6 {
    color: white;
}

/* ============================================
   SECTIONS
   ============================================ */
.section-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
}

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

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

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--gradient-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

footer h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

footer a:hover {
    color: white;
    transform: translateX(5px);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* Extra Small Devices (Phones, less than 576px) */
@media (max-width: 575.98px) {

    /* Typography */
    .hero-title {
        font-size: 2rem !important;
        letter-spacing: -0.5px !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .section-title {
        font-size: 1.75rem !important;
    }

    /* Hero Section */
    .hero-section {
        padding: 60px 0 40px !important;
        min-height: auto !important;
    }

    .hero-section.page-hero {
        min-height: auto !important;
        padding: 60px 0 30px !important;
        display: block;
    }

    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }

    .btn {
        font-size: 0.9rem;
    }

    /* Cards */
    .card-body {
        padding: 1rem !important;
    }

    .card-img-top {
        height: 200px !important;
    }

    .category-card {
        padding: 1.25rem 0.75rem !important;
    }

    .category-icon {
        font-size: 2rem !important;
    }

    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem !important;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
    }

    /* Forms */
    .form-control,
    .form-select {
        font-size: 1rem;
    }

    /* Spacing */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    /* Grid */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .row>* {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Hide on mobile */
    .d-none.d-md-block {
        display: none !important;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title {
        font-size: 2.25rem !important;
    }

    .hero-subtitle {
        font-size: 1.1rem !important;
    }

    .section-title {
        font-size: 1.85rem !important;
    }

    .card-img-top {
        height: 220px;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 2.75rem !important;
    }

    .hero-subtitle {
        font-size: 1.15rem !important;
    }

    .section-title {
        font-size: 2.25rem !important;
    }

    .category-card {
        padding: 1.75rem 1.25rem;
    }

    .category-icon {
        font-size: 2.75rem;
    }

    .card-img-top {
        height: 200px;
    }

    /* Navigation adjustments */
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.95);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title {
        font-size: 3.25rem !important;
    }

    .container {
        max-width: 960px;
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Ultra Wide (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1240px;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ============================================
   MOBILE SPECIFIC OPTIMIZATIONS
   ============================================ */
@media (max-width: 767.98px) {

    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Hero adjustments */
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }

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

    /* Card adjustments */
    .card {
        margin-bottom: 1rem;
    }

    .card-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    .card-footer .btn {
        width: 100%;
    }

    /* Category cards */
    .category-card h6 {
        font-size: 0.9rem;
    }

    /* Table of Contents */
    .toc-box,
    .toc-modern {
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* Pros & Cons */
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }

    /* Horizontal Scroll for Cards on Mobile (App-like feel) */
    .mobile-horizontal-scroll {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none;
        /* Firefox */
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
    }

    .mobile-horizontal-scroll::-webkit-scrollbar {
        display: none;
    }

    .mobile-horizontal-scroll>[class*="col-"] {
        flex: 0 0 75% !important;
        max-width: 75% !important;
        scroll-snap-align: start;
    }

    .mobile-horizontal-scroll.categories-scroll>[class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* Sidebar */
    .sticky-sidebar {
        position: relative !important;
        top: 0 !important;
    }

    /* Review page specific */
    .review-hero {
        padding: 40px 0 30px !important;
    }

    .rating-badge {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .rating-number {
        font-size: 1.5rem;
    }

    .product-image-wrapper {
        margin-bottom: 2rem;
    }

    /* Price tag */
    .price-tag {
        padding: 1rem;
    }

    .price-tag .h2 {
        font-size: 1.75rem;
    }

    /* Verdict box */
    .verdict-box {
        padding: 2rem 1.5rem !important;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
    }

    /* Search page */
    .input-group-lg {
        flex-direction: row;
        border-radius: 50px !important;
    }

    .input-group-lg .form-control {
        border-radius: 50px 0 0 50px !important;
        width: auto;
    }

    .input-group-lg .btn {
        border-radius: 0 50px 50px 0 !important;
        width: auto !important;
        margin-top: 0;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Accordion */
    .accordion-button {
        font-size: 0.95rem;
        padding: 1rem;
    }

    /* Badges */
    .badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.65rem;
    }

    /* Footer */
    footer .col-md-3 {
        margin-bottom: 2rem;
    }

    footer h5 {
        font-size: 1.1rem;
    }

    /* Contact page */
    .contact-info .card-body {
        padding: 1.5rem !important;
    }

    /* About page timeline */
    .timeline-item {
        padding-left: 0 !important;
        border-left: none !important;
    }
}

/* ============================================
   GLOBAL RESPONSIVE UTILITIES
   ============================================ */
.img-responsive {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.25rem) !important;
    }
}

/* ============================================
   TABLET SPECIFIC OPTIMIZATIONS
   ============================================ */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* 2-column grid for tablets */
    .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Adjust spacing */
    .g-4 {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
    }

    /* Navigation */
    .navbar-nav {
        padding: 1rem 0;
    }

    .nav-link {
        padding: 0.5rem 1rem !important;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {

    /* Larger touch targets */
    .btn {
        min-height: 48px;
        padding: 0.85rem 1.75rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    /* Remove hover effects on touch */
    .card:hover {
        transform: none;
    }

    .category-card:hover {
        transform: none;
    }

    /* Keep subtle transitions but remove transforms */
    .card,
    .category-card,
    .btn {
        transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION
   ============================================ */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        padding: 40px 0 30px !important;
        min-height: auto !important;
    }

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

    .hero-subtitle {
        font-size: 0.95rem !important;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ============================================ */

/* ── Navbar Mobile ── */
@media (max-width: 991.98px) {
    .glass-nav .navbar-collapse {
        background: rgba(15, 23, 42, 0.97);
        padding: 1rem 1.25rem;
        border-radius: 0 0 1rem 1rem;
        margin-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .glass-nav .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.3);
        padding: 0.35rem 0.65rem;
    }

    .glass-nav .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .nav-link {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        padding: 0.75rem 0 !important;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .d-flex.ms-lg-3 {
        width: 100%;
        margin-top: 0.75rem;
    }

    .input-group {
        width: 100%;
    }
}

/* ── Homepage Hero ── */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 70px 0 50px !important;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(1.85rem, 7vw, 2.5rem) !important;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-section .d-flex.flex-wrap {
        justify-content: center !important;
        gap: 0.75rem !important;
    }

    .hero-section .btn-lg {
        width: 100%;
        max-width: 320px;
        font-size: 0.95rem !important;
        padding: 0.75rem 1.5rem !important;
    }

    .hero-section .mt-5.d-flex.flex-wrap {
        flex-direction: row;
        justify-content: center !important;
        gap: 1rem !important;
        margin-top: 2rem !important;
    }
}

/* ── Homepage Categories ── */
@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.65rem !important;
        letter-spacing: -0.5px;
    }

    .category-card {
        padding: 1rem 0.75rem !important;
    }

    .category-icon {
        font-size: 1.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    .category-card h6 {
        font-size: 0.8rem !important;
    }

    /* Latest Reviews heading + button wrap */
    #latest-reviews .d-flex.justify-content-between {
        flex-direction: row;
        align-items: center !important;
        text-align: left;
        margin-bottom: 1.25rem !important;
    }

    #latest-reviews .section-title {
        font-size: 1.3rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    #latest-reviews .text-muted {
        font-size: 0.8rem;
        margin-bottom: 0 !important;
    }

    #latest-reviews .btn-sm {
        font-size: 0.75rem !important;
        padding: 0.35rem 0.7rem !important;
        white-space: nowrap;
    }

    /* Cards full width on smallest phones */
    .col-md-6.col-lg-4 {
        width: 100% !important;
    }

    .card-img-top {
        height: 220px !important;
    }

    .card-footer {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .card-footer .btn {
        width: auto !important;
    }
}

/* ── Why Trust Us section ── */
@media (max-width: 575.98px) {
    #why-trust .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ── Footer ── */
@media (max-width: 767.98px) {
    footer {
        padding: 2.5rem 0 1.5rem !important;
        margin-top: 2rem !important;
    }

    footer .row {
        gap: 0;
    }

    footer .col-md-3 {
        flex: 0 0 100%;
        width: 100%;
        margin-bottom: 1.5rem !important;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    footer .col-md-3:last-child {
        border-bottom: none;
        margin-bottom: 0 !important;
    }

    footer .list-inline {
        justify-content: center;
        display: flex;
    }

    footer .col-md-7,
    footer .col-md-5 {
        flex: 0 0 100%;
        width: 100%;
        text-align: center !important;
    }

    footer .text-md-end {
        text-align: center !important;
    }

    footer p {
        font-size: 0.9rem;
    }
}

/* ── Review Page — Hero ── */
@media (max-width: 991.98px) {
    .hero-new {
        padding: 30px 0 25px !important;
    }

    .hero-img-outer {
        margin-bottom: 1.5rem;
        padding: 10px !important;
    }

    .hero-img-inner {
        min-height: 260px !important;
    }

    .hero-img-inner img {
        max-height: 280px !important;
    }

    .hero-title-h1 {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
        text-align: center;
    }

    .hero-hype-intro {
        text-align: center;
    }

    .btn-group-mobile {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .btn-group-mobile .btn {
        width: 100% !important;
        text-align: center;
        justify-content: center;
    }

    .trust-rating-area {
        justify-content: center !important;
        align-items: center !important;
        text-align: center;
    }

    .col-lg-6:has(.hero-img-outer) {
        order: -1;
    }
}

@media (max-width: 575.98px) {
    .hero-new {
        padding: 20px 0 15px !important;
    }

    .hero-img-inner {
        min-height: 300px !important;
    }

    .hero-img-inner img {
        max-height: 340px !important;
    }

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

    .trust-rating-area {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .trust-rating-area .border-start {
        border-left: none !important;
        border-top: 1px solid #e2e8f0;
        padding-left: 0 !important;
        padding-top: 1rem;
        text-align: center;
        width: 100%;
    }

    .hero-hype-intro p {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }
}

/* ── Review Page — Standards Section ── */
@media (max-width: 767.98px) {
    .standards-section {
        padding: 10px 0 !important;
    }

    .standards-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .standards-title {
        font-size: 1.5rem !important;
    }

    .standards-subtitle {
        font-size: 0.95rem;
        margin-bottom: 24px !important;
    }

    .standard-icon-wrapper {
        width: 140px !important;
        height: 140px !important;
        margin-bottom: 12px !important;
    }

    .standard-icon-wrapper img {
        max-width: 140px !important;
        max-height: 140px !important;
    }

    .standard-card {
        padding: 20px 16px !important;
    }

    .standard-card h4 {
        font-size: 1rem;
    }

    .standard-card p {
        font-size: 0.9rem;
    }
}

/* ── Review Page — Customer Reviews Section ── */
@media (max-width: 767.98px) {
    .customer-reviews-section {
        padding: 10px 0 !important;
    }

    .customer-review-header {
        margin-bottom: 30px !important;
    }

    .customer-card {
        padding: 30px 20px !important;
        border-radius: 1.5rem !important;
    }

    .customer-img-wrapper {
        width: 100px !important;
        height: 100px !important;
        margin-bottom: 20px !important;
    }

    .trust-pill {
        font-size: 0.85rem !important;
        padding: 8px 18px !important;
    }
}

/* ── Review Page — Content Sections ── */
@media (max-width: 767.98px) {
    .content-section {
        padding: 10px 0 !important;
    }

    .what-is-title {
        font-size: 1.35rem !important;
    }

    .feature-check-list {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-top: 16px !important;
    }

    .feature-check-item {
        font-size: 0.8rem !important;
        padding: 8px 10px !important;
    }

    .mechanism-pill-list {
        gap: 6px !important;
    }

    .mechanism-pill {
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
    }

    .ingredient-list-item {
        padding: 0.75rem 1rem !important;
        gap: 0.85rem !important;
    }

    .ingredient-item-title {
        font-size: 0.95rem !important;
    }

    .ingredient-item-desc {
        font-size: 0.9rem !important;
    }

    .ingredients-custom-format h3 {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 575.98px) {
    .feature-check-list {
        grid-template-columns: 1fr !important;
    }

    .formula-badge,
    .mechanism-badge,
    .benefits-badge {
        font-size: 0.75rem !important;
        padding: 5px 12px !important;
    }
}

/* ── Review Page — Pros & Cons ── */
@media (max-width: 767.98px) {
    .pros-cons-col-box {
        padding: 1.5rem 1.25rem !important;
    }

    .pros-cons-col-title {
        font-size: 1.05rem !important;
        margin-bottom: 1.25rem !important;
    }

    .pros-cons-list li {
        font-size: 0.95rem !important;
        gap: 10px !important;
    }

    .pros-cons-list li .pc-icon {
        width: 24px !important;
        height: 24px !important;
    }
}

/* ── Review Page — Pricing Section ── */
@media (max-width: 767.98px) {
    .pricing-grid {
        grid-template-columns: 1fr !important;
        max-width: 340px !important;
        gap: 1.25rem !important;
    }

    .pricing-card.popular {
        order: -1;
    }

    .pkg-image {
        width: 130px !important;
        height: 130px !important;
    }

    .pricing-card.popular .pkg-image {
        width: 170px !important;
        height: 170px !important;
    }

    .pkg-price-unit .price-txt {
        font-size: 2rem !important;
    }

    .pkg-feature-pill {
        font-size: 0.76rem !important;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .pricing-grid {
        grid-template-columns: 1fr 1fr !important;
        max-width: 100% !important;
    }

    .pricing-card.popular {
        grid-column: 1 / -1;
        max-width: 340px;
        margin: 0 auto;
        order: -1;
    }
}

/* rating strip below pricing — mobile wrap */
@media (max-width: 575.98px) {
    .pricing-grid+div .d-flex {
        gap: 1rem !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .pricing-grid+div [style*="border-left"] {
        border-left: none !important;
        padding-left: 0 !important;
        border-top: 1px solid #e2e8f0;
        padding-top: 0.75rem;
        width: 100%;
        text-align: center;
    }
}

/* ── Review Page — Guarantee Section ── */
@media (max-width: 767.98px) {
    .guarantee-section {
        padding: 2.5rem 1.25rem !important;
    }

    .guarantee-title {
        font-size: 1.5rem !important;
    }

    .guarantee-features {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .guarantee-seal {
        max-width: 130px !important;
        margin-bottom: 1.5rem;
    }
}

/* ── Review Page — FAQ ── */
@media (max-width: 767.98px) {
    .faq-accordion .accordion-button {
        font-size: 0.95rem !important;
        padding: 1rem !important;
    }

    .faq-accordion .accordion-body {
        font-size: 0.95rem !important;
    }

    .faq-icon-q {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.85rem !important;
    }
}

/* ── Review Page — Verdict / Refund ── */
@media (max-width: 767.98px) {
    .verdict-box {
        padding: 1.5rem 1.25rem !important;
    }

    .verdict-box h2,
    .verdict-box h3 {
        font-size: 1.35rem !important;
    }

    .cta-button {
        width: 100% !important;
        font-size: 1rem !important;
        padding: 0.875rem 1.5rem !important;
    }
}

/* ── Review Page — Mobile Sticky CTA ── */
@media (max-width: 991.98px) {
    .mobile-sticky-buy {
        display: flex !important;
        padding: 10px 16px !important;
        gap: 10px !important;
    }

    .mobile-sticky-buy img {
        width: 36px !important;
        height: 36px !important;
    }

    .mobile-sticky-buy span {
        font-size: 0.85rem !important;
    }

    .mobile-sticky-buy .btn {
        font-size: 0.85rem !important;
        padding: 8px 16px !important;
        white-space: nowrap;
    }
}

/* ── Where To Buy Section ── */
@media (max-width: 767.98px) {
    .shipping-info-grid {
        grid-template-columns: 1fr !important;
    }

    .official-site-alert {
        padding: 1.25rem !important;
    }

    .official-site-alert .h4 {
        font-size: 1rem !important;
    }

    .not-available-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .btn-visit-official {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }

    .trust-reason-list {
        padding: 1.25rem !important;
    }
}

/* ── Container overflow prevention ── */
@media (max-width: 575.98px) {
    .container {
        padding-left: 0.875rem !important;
        padding-right: 0.875rem !important;
    }

    img {
        max-width: 100%;
    }

    .what-is-img-container {
        min-height: 220px !important;
    }

    .what-is-img-container img {
        max-height: 200px !important;
    }
}

/* ── General overflow fix ── */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

.row {
    --bs-gutter-x: 1.5rem;
}

@media (max-width: 575.98px) {
    .row {
        --bs-gutter-x: 1rem;
    }

    .g-5 {
        --bs-gutter-y: 1.5rem !important;
    }
}

/* ── Benefit Grid ── */
@media (max-width: 575.98px) {
    .benefits-grid {
        grid-template-columns: 1fr !important;
    }

    .benefit-card {
        padding: 14px !important;
        gap: 12px;
    }

    .benefit-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem !important;
    }
}

/* ── Section tight spacing on mobile ── */
@media (max-width: 575.98px) {
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    .mt-5 {
        margin-top: 1.5rem !important;
    }

    section+section {
        margin-top: 0 !important;
    }

    .content-section+.content-section {
        border-top: 1px solid #f1f5f9;
    }
}

/* ── Print ── */
@media print {

    .navbar,
    footer,
    .sticky-sidebar,
    .btn,
    .cta-button,
    #progress-container,
    .mobile-sticky-buy {
        display: none !important;
    }

    .container {
        max-width: 100%;
    }

    .card {
        break-inside: avoid;
    }
}

/* ── Animations ── */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.pulse-cta {
    animation: pulse 2s infinite ease-in-out;
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .card {
        border: 2px solid currentColor;
    }

    .btn {
        border: 2px solid currentColor;
    }
}

/* ── Touch Devices ── */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
        padding: 0.85rem 1.75rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .card:hover,
    .category-card:hover {
        transform: none;
    }

    .card,
    .category-card,
    .btn {
        transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    }
}

/* =========================================
   REVIEW CONTENT BOX SHADOW & WRAPPER
   ========================================= */
body {
    background-color: #f7f9fa;
}

.main-page-wrapper {
    background-color: #f1f5f9;
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    border: none;
}

.review-layout-column {
    max-width: 1300px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: -15px 0 15px -15px rgba(0, 0, 0, 0.08), 15px 0 15px -15px rgba(0, 0, 0, 0.08);
    border-radius: 0;
    position: relative;
    z-index: 1;
}

.review-content {
    width: 100%;
    margin: 0 auto 3rem auto;
    padding: 0;
}

@media (max-width: 992px) {
    .main-page-wrapper {
        margin: 0 auto;
        border-radius: 0;
        box-shadow: none;
    }

    .review-content {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .main-page-wrapper {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    .review-content {
        padding: 0;
    }
}
/* ==================================================
   SMOOTH SCROLLING (For TOC & Anchors)
   ================================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Prevents sticky header from hiding content */
}
