@import url('styles.css');

/* 100% Similar BestBot Design System */

:root {
    --bb-purple: #6101ea;
    --bb-purple-light: #f0edff;
    --bb-blue: #007185;
    --bb-green: #00b894;
    --bb-green-light: #e8fcf8;
    --bb-orange: #6101ea;
    --bb-red: #d32f2f;
    --bb-text: #2d3436;
    --bb-text-muted: #636e72;
    --bb-border: #eee;
    --bb-bg: #f4f7f9;
}

body {
    background-color: transparent; /* Let boxed-wrapper and styles.css handle it */
    font-family: 'Kanit', sans-serif;
    color: var(--bb-text);
}

.bb-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 1px 5%;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    border-radius: 0; /* Remove top radius for sticky performance */
}

.ecovacs-container {
    max-width: 1400px;
    margin: 10px auto;
    padding: 0 5%;
    padding-bottom: 10px;
}

/* Header Re-recreation */

.logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.bb-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bb-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--bb-text);
    text-decoration: none;
}

.bb-logo span { color: var(--bb-purple); }

/* Main Title Section */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0ebff 100%);
    padding: 40px 50px;
    border-radius: 32px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-shadow: 0 15px 50px rgba(97, 1, 234, 0.1);
    border: 1px solid rgba(97, 1, 234, 0.15);
    position: relative;
    z-index: 1;
}

@media (max-width: 1100px) {
    .hero-section {
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
        text-align: center;
    }
    .hero-left, .ai-card {
        flex: 0 0 100%;
        width: 100%;
    }
}

.hero-left {
    flex: 0 0 78%; /* Approximately 80% width with gap */
    min-width: 0;
}

.hero-left h1 {
    font-size: 2.7rem;
    line-height: 1.2;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .hero-left h1 {
        font-size: 1.7rem !important;
    }
}

.hero-left h1 span { color: var(--bb-purple); }

.hero-left p {
    color: var(--bb-text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.trust-row {
    display: flex;
    gap: 30px;
    border-top: 1px solid #f0f0f0;
    padding-top: 30px;
}

.trust-item {
    text-align: center;
}

.trust-item i {
    font-size: 1.4rem;
    color: var(--bb-purple);
    margin-bottom: 5px;
}

.trust-item .val { font-weight: 800; font-size: 1rem; display: block; }
.trust-item .lbl { font-size: 0.7rem; color: var(--bb-text-muted); font-weight: 600; text-transform: uppercase; }

/* AI Rec Card */
.ai-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column; /* Vertical layout for narrow space */
    align-items: center;
    text-align: center;
    gap: 15px;
    flex: 0 0 20%; /* 20% width as requested */
    box-shadow: 0 10px 30px rgba(98, 0, 234, 0.08);
    position: relative;
}

/* Trust Row Mobile Optimization */
@media (max-width: 768px) {
    .trust-row {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    .trust-item {
        flex: 1 1 100px;
    }
}

.ai-card::before {
    content: "Best Match";
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--bb-purple);
    color: white;
    padding: 4px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
}

.hero-status {
    color: var(--bb-green);
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: block;
}

.ai-card-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.ai-card-title {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.ai-card-text {
    font-size: 0.75rem;
    color: var(--bb-text-muted);
    margin-bottom: 15px;
}

.ai-quiz-btn {
    background: var(--bb-purple);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-block;
    transition: transform 0.3s ease;
}

.ai-quiz-btn:hover {
    transform: translateY(-2px);
}

/* 100% Exact Product Card Grid */
.ranking-card {
    display: grid;
    grid-template-columns: 75px 260px 1.2fr 300px 220px;
    background: white;
    border-radius: 24px;
    margin-bottom: 35px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

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

/* Col 1: Rank Bar */
.card-rank {
    background: linear-gradient(to bottom, #6101ea, #9d50bb);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 25px;
}

.rank-medal {
    width: 50px;
    height: 50px;
    background: url('https://cdn-icons-png.flaticon.com/512/179/179249.png') no-repeat center;
    background-size: contain;
    margin-bottom: 15px;
}

.card-rank .num { font-size: 3.8rem; font-weight: 900; line-height: 1; }
.card-rank .txt { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; margin-top: 5px; text-align: center; line-height: 1.2; padding: 0 5px; }

.card-rank.silver {
    background: linear-gradient(to bottom, #455a64, #78909c);
}

.card-rank.silver .rank-medal {
    background: url('https://cdn-icons-png.flaticon.com/512/179/179251.png') no-repeat center;
    background-size: contain;
}

.card-rank.bronze {
    background: linear-gradient(to bottom, #6101ea, #f0edff);
}

/* Col 2: Image Section */
.card-img {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.badge-choice {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #002f36;
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 800;
}

.card-img img { max-width: 90%; height: auto; margin-bottom: 15px; }

.view-gallery-btn {
    border: 1px solid #e0e0e0;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #444;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
}

.dots-row { display: flex; gap: 8px; margin-top: 15px; }
.dot { width: 8px; height: 8px; background: #dfe6e9; border-radius: 50%; }
.dot.active { background: var(--bb-purple); }

/* Col 3: Content */
.card-info { padding: 30px 10px; }
.title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.card-info h2 {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.5rem;
    margin: 0;
}
.trending-badge { border: 1px solid #00b894; color: #00b894; padding: 2px 10px; border-radius: 6px; font-size: 0.65rem; font-weight: 800; background: #f4fdfa; display: flex; align-items: center; gap: 5px; }

.card-info .tagline { color: #636e72; font-size: 0.9rem; font-weight: 600; margin-bottom: 20px; }

.feature-bullets { list-style: none; padding: 0; margin: 0 0 25px; }
.feature-bullets li { font-size: 0.85rem; font-weight: 600; color: #2d3436; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.feature-bullets i { color: var(--bb-purple); font-size: 1rem; }

.best-for { display: flex; gap: 10px; }
.best-tag { background: #f3f0ff; color: #6101ea; padding: 8px 20px; border-radius: 12px; font-size: 0.75rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }

/* Col 4: Scores & Stats */
.card-data {
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 1px solid #f5f5f5;
    border-right: 1px solid #f5f5f5;
}

.scores-row {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.score-item { text-align: center; }
.circle {
    width: 42px; height: 42px; border-radius: 50%; border: 3px solid #eee; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 900; margin-bottom: 5px; background: white;
}
.score-item.purple .circle { border-color: #6101ea; }
.score-item.blue .circle { border-color: #0984e3; }
.score-item.green .circle { border-color: #00b894; }
.score-item.orange .circle { border-color: #fd9644; }
.score-item.yellow .circle { border-color: #f1c40f; }
.score-lbl { font-size: 0.55rem; font-weight: 700; color: #636e72; text-transform: capitalize; }

.stats-grid-6 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

.stat-box {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-box i { font-size: 1.1rem; color: #636e72; width: 20px; text-align: center; }
.stat-box .v { font-weight: 800; font-size: 0.8rem; display: block; }
.stat-box .l { font-size: 0.55rem; font-weight: 700; color: #b2bec3; text-transform: uppercase; }

/* Col 5: Pricing */
.card-price {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.ratings { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; }
.ratings .stars { color: #f1c40f; font-size: 0.8rem; }
.ratings .val { font-weight: 800; font-size: 0.8rem; }
.verified-buyers { font-size: 0.7rem; color: #b2bec3; font-weight: 700; margin-bottom: 20px; }

.p-main { font-size: 2.2rem; font-weight: 900; line-height: 1; margin-bottom: 5px; }
.p-row { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.p-old { color: #b2bec3; text-decoration: line-through; font-size: 0.9rem; font-weight: 600; }
.p-off { background: #ffeaa7; color: #d63031; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 800; }

.lowest-p { color: #00b894; font-size: 0.7rem; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }

.coupon-box {
    border: 1px dashed #00b894;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.coupon-box .c-txt { font-size: 0.75rem; font-weight: 800; color: #2d3436; }
.coupon-box .c-lbl { font-size: 0.6rem; color: #00b894; font-weight: 700; }

.amazon-cta {
    background: linear-gradient(to right, #6101ea, #9d50bb);
    color: white;
    text-decoration: none;
    padding: 15px;
    border-radius: 50px;
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(98, 0, 234, 0.3);
    margin-bottom: 10px;
}

.amazon-cta.blue-grad {
    background: linear-gradient(to right, #0984e3, #007185);
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.3);
}

.prime-footer { display: flex; justify-content: space-between; font-size: 0.65rem; font-weight: 700; color: #b2bec3; }
.prime-footer span { display: flex; align-items: center; gap: 5px; }
.prime-footer i { color: #0984e3; }

/* Mobile & Tablet Responsive Overhaul */
@media (max-width: 1300px) {
    .ranking-card { grid-template-columns: 75px 220px 1fr 280px 200px; }
}

@media (max-width: 1100px) {
    .ranking-card { 
        grid-template-columns: 75px 200px 1.2fr 1fr; 
        grid-template-areas: "rank img info price";
    }
    .card-data { display: none; } /* Hide stats on medium tablets to save space */
}

@media (max-width: 820px) {
    .hero-section { flex-direction: column; padding: 25px; }
    .hero-left h1 { font-size: 2.2rem; }
    
    .ranking-card {
        display: flex;
        flex-direction: column;
        position: relative;
        border-radius: 20px;
    }

    .card-rank {
        position: absolute;
        top: 0;
        left: 20px;
        width: 65px;
        height: auto;
        padding: 12px 0 20px;
        z-index: 10;
        border-bottom-right-radius: 12px;
        border-bottom-left-radius: 12px;
    }

    .card-rank .num { font-size: 2.8rem; }
    .card-rank .txt { font-size: 0.65rem; }
    .rank-medal { width: 35px; height: 35px; margin-bottom: 8px; }

    .card-img { 
        width: 100%; 
        padding: 100px 20px 30px; 
        border-bottom: 1px solid #f5f5f5;
        background: #fafafa;
    }

    .badge-choice {
        top: 25px;
        left: auto;
        right: 20px;
        background: var(--bb-purple);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 6px 15px;
        border-radius: 8px;
    }

    .card-info { 
        padding: 25px 20px; 
    }

    .title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 15px;
    }

    .card-info h2 { font-size: 1.5rem; }

    .best-for {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .card-data {
        border-left: none;
        border-right: none;
        border-top: 1px solid #f5f5f5;
        padding: 25px 20px;
        background: #fff;
    }

    .card-price {
        border-top: 1px solid #f5f5f5;
        padding: 25px 20px;
        background: #fcfcfc;
    }

    .scores-row {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: flex-start;
    }

    .circle {
        width: 44px;
        height: 44px;
        font-size: 0.85rem;
    }

    .stats-grid-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Smartphone View (480px) */
@media (max-width: 480px) {
    .hero-section {
        padding: 30px 15px;
        border-radius: 24px;
    }

    .hero-left h1 {
        font-size: 1.6rem;
    }

    .hero-left p {
        font-size: 0.85rem;
    }

    .trust-row {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .trust-item {
        flex: 1 1 100px;
    }

    .ranking-card {
        border-radius: 16px;
    }

    .card-info h2 {
        font-size: 1.3rem;
    }

    .feature-bullets li {
        font-size: 0.85rem;
    }

    .p-main {
        font-size: 1.8rem;
    }

    .amazon-cta {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .card-rank .num {
        font-size: 2.2rem;
    }
}

/* Tablet Support (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .ranking-card {
        grid-template-columns: 80px 200px 1fr 180px;
        gap: 10px;
    }
    
    .card-info {
        padding: 15px;
    }
    
    .stats-grid-6 {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .expert-box {
        padding: 35px !important;
    }

    .expert-heading {
        font-size: 1.8rem !important;
    }
}

/* Editorial Guide Section Styles */
.editorial-guide-section {
    margin-top: 100px;
    border-top: 1px solid #eee;
    padding-top: 80px;
}

.section-title-box {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-box h2 {
    font-size: 2.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #2d3436, #636e72);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title-box p {
    color: #666;
    max-width: 800px;
    margin: 20px auto;
    line-height: 1.8;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* Responsive Grid Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.guide-card {
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.guide-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.guide-card h3 {
    font-weight: 900;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.guide-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.guide-card-meta {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* Comparison Table Styles */
.comparison-table-container {
    margin-top: 100px;
    margin-bottom: 100px;
}

.comparison-table-container h3 {
    font-size: 2.2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 30px;
    border: 1px solid #eee;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.bb-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 800px;
}

.bb-table thead {
    background: #f8f9fa;
}

.bb-table th {
    padding: 25px;
    text-align: left;
    font-weight: 900;
}

.bb-table td {
    padding: 20px;
    border-top: 1px solid #eee;
}

.bb-table tr:hover {
    background: #fafafa;
}

@media (max-width: 768px) {
    .editorial-guide-section {
        margin-top: 60px;
        padding-top: 40px;
    }

    .section-title-box h2 {
        font-size: 2rem;
    }

    .guide-grid, .grid-3, .grid-2, .faq-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

    .guide-card {
        padding: 30px 20px;
    }

    .comparison-table-container h3 {
        font-size: 1.8rem;
    }
}

/* Common Mistakes Styles */
.mistakes-section {
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    padding: 60px;
    border-radius: 40px;
    margin-bottom: 100px;
}

.mistakes-section h3 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #b71c1c;
    margin-bottom: 30px;
}

.mistakes.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.mistake-item h4 {
    font-weight: 800;
    margin-bottom: 10px;
}

.mistake-item p {
    font-size: 0.9rem;
    color: #666;
}

@media (max-width: 768px) {
    .mistakes-section {
        padding: 40px 20px;
        margin-bottom: 60px;
    }
    .mistakes-grid {
        grid-template-columns: 1fr;
    }
}

/* Robot vs Traditional Table Styles */
.vs-table-section {
    margin-bottom: 100px;
}

.vs-table-section h3 {
    font-size: 2.2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
}

.vs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 800px;
}

.vs-table thead {
    background: var(--bb-purple);
    color: white;
}

.vs-table th {
    padding: 20px;
    text-align: left;
}

.vs-table td {
    padding: 15px;
}

/* Author Section Styles */
.author-section {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid #eee;
    border-radius: 30px;
    padding: 60px;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.author-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bb-purple);
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.author-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 50px;
    align-items: center;
}

.author-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.author-content h3 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 15px;
    color: #2d3436;
}

.author-title {
    font-weight: 700;
    color: var(--bb-purple);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.author-bio {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

.author-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.author-social a {
    font-size: 1.5rem;
    text-decoration: none;
}

/* Pet Hair & Specialist Guide Styles (Shared) */
.guide-sections-wrapper {
    max-width: 1300px;
    margin: 60px auto;
}

.why-popular-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.who-buy-card {
    background: #f8f9ff;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid #eef2ff;
}

.who-buy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.who-buy-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.who-buy-item i {
    font-size: 1.5rem;
    color: #6101ea;
    background: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(97, 1, 234, 0.1);
}

.who-buy-item span {
    font-size: 0.75rem;
    font-weight: 700;
}

.pet-hair-grid-pro {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
    align-items: center;
    padding: 30px;
}

.pet-hair-info-box {
    background: #f0edff;
    padding: 25px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.rec-suction-banner {
    background: #f0edff;
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 20px 0;
}

@media (max-width: 1024px) {
    .why-popular-grid, .pet-hair-grid-pro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .author-section {
        padding: 40px 20px;
    }
    .author-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .author-img {
        margin: 0 auto;
    }
    .author-badge {
        position: static;
        display: inline-block;
        margin-bottom: 20px;
    }
    .author-social {
        justify-content: center;
    }
}

/* Mobile Nav Bar */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: none;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #eee;
    z-index: 2000;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
}

@media (max-width: 820px) {
    .mobile-nav {
        display: flex;
    }
    
    body {
        padding-bottom: 70px; /* Space for sticky nav */
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #b2bec3;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 800;
}

.nav-item.active { color: var(--bb-purple); }
.nav-item i { font-size: 1.4rem; margin-bottom: 5px; }

/* FAQ Section Styles */
.faq-section {
    margin-bottom: 100px;
}

.faq-section h3 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 40px;
    text-align: center;
}

@media (max-width: 768px) {
    .faq-section h3 {
        font-size: 1.8rem;
    }
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.faq-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #eee;
}

.faq-card h4 {
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--bb-purple);
}

.faq-card p {
    color: #555;
}

@media (max-width: 768px) {
    .faq-section {
        margin-bottom: 60px;
    }
    .faq-section h3 {
        font-size: 1.8rem;
    }
    .faq-card {
        padding: 20px;
    }
}

/* Recommendation Sections Premium Styles */
.recommendations-section {
    padding: 10px 3%;
    border-top: 1px solid var(--bb-border);
    margin: 10px auto 0;
    max-width: 1300px;
    width: 100%;
    box-sizing: border-box;
}

.rec-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    gap: 10px;
}

.rec-section-header h2 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 10px;
    color: var(--bb-text);
}

.rec-section-header p {
    color: var(--bb-text-muted);
    margin: 0;
    font-size: 1rem;
}

.view-all-link {
    color: var(--bb-purple);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.view-all-link:hover {
    gap: 12px;
}

.rec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.rec-card {
    display: block;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bb-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.rec-card:hover {
    border-color: var(--bb-purple);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.rec-card-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.rec-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rec-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: white;
    color: var(--bb-text);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--bb-border);
}

.rec-card-body {
    padding: 20px;
}

.rec-card-body h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.4;
    color: var(--bb-text);
}

.rec-card-body p {
    font-size: 0.85rem;
    color: var(--bb-text-muted);
    margin: 0 0 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rec-meta {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    color: var(--bb-text-muted);
    font-weight: 600;
}

.rec-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vs-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--bb-text);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
    border: 3px solid white;
    z-index: 2;
}

.section-box {
    background: #ffffff;
    border: 1px solid var(--bb-border);
    border-radius: 24px;
    padding: 25px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: all 0.3s;
}

.section-box:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.newsletter-section {
    background: #000033;
    border-radius: 30px;
    padding: 60px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.bell-icon {
    font-size: 3.5rem;
    color: #6101ea;
    animation: ring 4s infinite ease-in-out;
}

@keyframes ring {
    0%, 100% { transform: rotate(0); }
    5%, 15%, 25% { transform: rotate(10deg); }
    10%, 20% { transform: rotate(-10deg); }
    30% { transform: rotate(0); }
}

.newsletter-text h3 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 10px;
}

.newsletter-text p {
    color: rgba(255,255,255,0.7);
    margin: 0;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    background: white;
    padding: 8px;
    border-radius: 15px;
    width: 100%;
    max-width: 450px;
}

.newsletter-form input {
    flex: 1;
    border: none;
    padding: 0 20px;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

.newsletter-form button {
    background: #ff5e14;
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #e54d00;
}

.footer-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: white;
    color: var(--bb-text-muted);
    border: 1px solid var(--bb-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.feature-text h5 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 5px;
}

.feature-text p {
    font-size: 0.8rem;
    color: var(--bb-text-muted);
    margin: 0;
}

@media (max-width: 1024px) {
    .rec-grid, .footer-features {
        grid-template-columns: repeat(2, 1fr);
    }
    .newsletter-section {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .newsletter-content {
        flex-direction: column;
    }
    .newsletter-form {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .rec-grid, .footer-features {
        grid-template-columns: 1fr;
    }
    .rec-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Standardized Header Responsive Fixes */
@media (max-width: 992px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .search-bar {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none; /* Hide links on very small screens to maintain cleanliness */
    }
    header {
        padding: 15px 20px;
    }
}

@media (max-width: 768px) {
    .card-rank {
        border-bottom-right-radius: 10px;
        border-bottom-left-radius: 10px;
    }
}
/* Expert Insights Outbox System */
.expert-insights-outbox {
    background: linear-gradient(135deg, #ffffff 0%, #f0ebff 100%);
    border: 1px solid rgba(97, 1, 234, 0.15);
    box-shadow: 0 15px 50px rgba(97, 1, 234, 0.1);
    border-radius: 32px;
    padding: 60px 0;
    margin-top: 60px;
    margin-bottom: 60px;
}

.expert-insights-outbox .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Premium Footer System */
.grabdeel-footer {
    background: white;
    color: var(--bb-text);
    padding: 60px 0;
    border-top: 1px solid var(--bb-border);
    margin-top: 40px;
}

.footer-content-v2 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

@media (max-width: 768px) {
    .footer-content-v2 {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-divider {
        display: none;
    }
}

.footer-nav-link {
    color: var(--bb-text);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: color 0.3s;
}

.footer-nav-link:hover {
    color: var(--bb-purple) !important;
}

.footer-divider {
    width: 1px;
    height: 24px;
    background: var(--bb-border);
}

@media (max-width: 768px) {
    .expert-insights-outbox {
        padding: 40px 0;
        border-radius: 20px;
        margin-top: 40px;
    }

    .footer-content-v2 {
        flex-direction: row !important; /* Keep row on mobile as requested */
        flex-wrap: wrap; /* Allow minor wrap on very small screens to prevent overflow */
        justify-content: center !important;
        text-align: center !important;
        gap: 20px !important;
        padding-bottom: 100px !important; 
    }

    .footer-divider {
        display: none;
    }

    .footer-content-v2 > div {
        flex-direction: column;
        gap: 10px;
    }

    .expert-box {
        padding: 25px;
    }

    .expert-card {
        padding: 20px;
    }
}

/* Box-in-Box Modular System */
.expert-box {
    background: white;
    padding: 50px;
    border-radius: 24px;
    margin-bottom: 40px;
    border: 1px solid var(--bb-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.expert-card {
    background: white;
    padding: 30px;
    border: 1px solid var(--bb-border);
    border-radius: 16px;
}

.expert-tag-badge {
    color: var(--bb-purple);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.expert-heading {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 10px 0;
    color: var(--bb-text);
}

.expert-subtext {
    color: var(--bb-text-muted);
    max-width: 700px;
    line-height: 1.6;
    font-size: 1.05rem;
    margin: 0 auto 50px;
}

/* Platform-wide Responsive Grid Safety Net */
@media (max-width: 820px) {
    [style*="display: grid"][style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    [style*="display: grid"] img {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        height: auto !important;
    }
}

/* Trending Section */
.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.trending-card {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 15px;
    border: 1px solid var(--bb-border);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.trending-card:hover {
    background: var(--bb-purple-light);
    border-color: var(--bb-purple);
    transform: translateY(-2px);
}

.trending-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.trending-info h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.3;
}

/* Newsletter Section */
.newsletter-section {
    background: #000033;
    border-radius: 30px;
    padding: 60px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.newsletter-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.bell-icon {
    font-size: 3.5rem;
    color: #6101ea;
    animation: ring 4s infinite ease-in-out;
}

@keyframes ring {
    0%, 100% { transform: rotate(0); }
    5%, 15%, 25% { transform: rotate(10deg); }
    10%, 20% { transform: rotate(-10deg); }
    30% { transform: rotate(0); }
}

.newsletter-text h3 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 10px;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    background: white;
    padding: 8px;
    border-radius: 15px;
    width: 100%;
    max-width: 450px;
}

.newsletter-form input {
    flex: 1;
    border: none;
    padding: 0 20px;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

.newsletter-form button {
    background: #ff5e14;
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: #e54d00;
}

/* Responsive for Trending and Newsletter */
@media (max-width: 1024px) {
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .newsletter-section {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 40px 20px;
    }
    .newsletter-content {
        flex-direction: column;
    }
    .newsletter-text h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .trending-grid {
        grid-template-columns: 1fr;
    }
    .newsletter-text h3 {
        font-size: 1.4rem;
    }
}

/* Final Conclusion Box */
.final-conclusion-box {
    text-align: center;
    margin-bottom: 80px;
    padding: 60px;
    background: #f8f9fa;
    border-radius: 30px;
}

.final-conclusion-box h3 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--bb-text);
}

.final-conclusion-box p {
    color: var(--bb-text-muted);
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .final-conclusion-box {
        padding: 40px 20px;
        margin-bottom: 40px;
        border-radius: 20px;
    }
    .final-conclusion-box h3 {
        font-size: 1.8rem;
    }
    .final-conclusion-box p {
        font-size: 1rem;
    }
    .expert-insights-outbox {
        padding: 40px 0;
        margin-top: 40px;
    }
}
