/* ==========================================================================
   Base Reset & Variables (Premium Vibe)
   ========================================================================== */
:root {
    --primary-color: #0d1117; /* Dark futuristic header */
    --accent-color: #00c853; /* MobileDokan style green accent */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-main: #f4f6f8; /* Light gray background for contrast */
    --bg-card: #ffffff;
    --border-color: #e1e4e8;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    background-color: var(--primary-color);
    color: white;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    color: white;
}

.logo span {
    color: var(--accent-color); /* To make "Info" part green if you wrap it */
}

.main-header nav {
    display: flex;
    gap: 25px;
}

.main-header nav a {
    color: #c9d1d9;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
}

.main-header nav a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   Main Container & Layout
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

h1 {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    color: var(--primary-color);
}

/* ==========================================================================
   Grid Layout & Phone Cards (GSMArena / MobileDokan Style)
   ========================================================================== */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.phone-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.phone-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.phone-card img {
    max-width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
}

.phone-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.phone-card h3 a {
    color: var(--primary-color);
}

.phone-card h3 a:hover {
    color: var(--accent-color);
}

.phone-card p {
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--primary-color);
    color: #8b949e;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    font-size: 14px;
}

/* ==========================================================================
   Responsive Design (Mobile Friendly)
   ========================================================================== */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }

    .grid-layout {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Smaller cards for mobile */
        gap: 15px;
    }

    .phone-card img {
        max-height: 140px;
    }
}
/* ==========================================================================
   Header Glassmorphism (Blur) & Smart Scroll
   ========================================================================== */
.main-header {
    background-color: rgba(13, 17, 23, 0.85); /* Semi-transparent dark */
    backdrop-filter: blur(12px); /* Apple/Pro style blur effect */
    -webkit-backdrop-filter: blur(12px);
    position: fixed; /* Fixed instead of sticky for better animation */
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-header.hide {
    transform: translateY(-100%); /* Hides header on scroll down */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
}

/* Search Bar Styles */
.search-bar form {
    display: flex;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    width: 350px;
}

.search-bar input {
    border: none;
    padding: 10px 15px;
    width: 100%;
    outline: none;
    font-size: 14px;
}

.search-bar button {
    background: #e0e0e0;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--accent-color);
    color: white;
}

/* Fix main container padding because header is fixed */
.container {
    padding-top: 90px; 
}

/* ==========================================================================
   Advanced Phone Finder (MobileDokan Style)
   ========================================================================== */
.phone-finder-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.finder-header {
    text-align: center;
    margin-bottom: 20px;
}

.finder-header h2 {
    font-size: 18px;
    color: #3b5998; /* Dokan style blue-ish header */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.finder-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.price-range, .filter-dropdowns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 5px;
}

.range-inputs input {
    width: 100px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.filter-dropdowns select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 150px;
    background: #f9f9f9;
}

.find-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 30px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.find-btn:hover {
    background: var(--accent-color);
}
/* ==========================================
   Homepage Sections & View More Button
   ========================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 22px;
}

.view-more-btn {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
}

.view-more-btn:hover {
    text-decoration: underline;
}

/* Spec Score Badge (MobileDokan Style) */
.phone-card {
    position: relative;
}
.spec-score {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #008000;
    color: #fff;
    padding: 3px 6px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
}

/* ==========================================
   Product Details Page (GSMArena Style)
   ========================================== */
.product-header-section {
    display: flex;
    gap: 30px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.product-image img {
    max-width: 250px;
    border-radius: 8px;
}

.product-summary h1 {
    font-size: 28px;
    margin-bottom: 15px;
    border: none;
}

.price-box {
    background: #f8f9fa;
    padding: 15px;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 15px;
}

.status-badge {
    color: green;
    font-weight: bold;
}

/* Specifications Table */
.specifications-section {
    margin-bottom: 40px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.specs-table th, .specs-table td {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    text-align: left;
}

.specs-table th {
    background: #f4f6f8;
    color: #cc0000; /* GSMArena style red header */
    font-size: 16px;
    font-weight: 600;
    width: 15%;
    text-transform: uppercase;
}

.spec-title {
    width: 25%;
    font-weight: 600;
    color: #555;
    background: #fafafa;
}

/* Video Wrapper */
.video-review-section, .written-review-section {
    margin-bottom: 40px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Responsive fixes */
@media(max-width: 768px) {
    .product-header-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .specs-table th {
        width: 100%;
        display: block;
        text-align: center;
        background: #e9ecef;
    }
    .spec-title {
        width: 35%;
    }
}
/* ==========================================
   Dual Currency Pricing
   ========================================== */
.price-container {
    margin-top: 10px;
    font-size: 14px;
}
.off-price { color: #28a745; font-weight: bold; }
.unoff-price { color: #dc3545; font-weight: bold; margin-top: 4px; }
.usd { font-size: 12px; color: #6c757d; font-weight: normal; }

/* ==========================================
   Pagination (MobileDokan Style)
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination a {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    color: var(--primary-color);
    border-radius: 4px;
    font-weight: 600;
}

.pagination a:hover, .pagination a.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* ==========================================
   GSMArena Style SVG Highlights
   ========================================== */
.quick-highlights {
    display: flex;
    justify-content: space-between;
    background: linear-gradient(to right, #0d1117, #161b22);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    color: white;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 15px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 200px;
}

.highlight-item svg {
    width: 36px;
    height: 36px;
    color: var(--accent-color); /* Green icon color */
}

.hl-text {
    display: flex;
    flex-direction: column;
}

.hl-text strong {
    font-size: 18px;
    letter-spacing: 0.5px;
}

.hl-text span {
    font-size: 12px;
    color: #8b949e;
}
/* ==========================================
   Latest News & Reviews List (GSMArena Style)
   ========================================== */
.news-list-layout {
    display: flex;
    flex-direction: column;
    gap: 15px; /* নিউজগুলোর মাঝের ফাঁকা জায়গা */
}

.news-list-item {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
}

.news-list-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: #d1d5da;
}

.news-thumbnail {
    flex: 0 0 250px; /* ইমেজের ফিক্সড উইডথ */
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.news-content h3 {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 8px;
    border: none;
    padding: 0;
}

.news-content h3 a {
    color: #cc0000; /* GSMArena স্টাইলের লাল রঙের টাইটেল */
    text-decoration: none;
}

.news-content h3 a:hover {
    text-decoration: underline;
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-weight: bold;
}

.time-ago {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Responsive News List */
@media(max-width: 768px) {
    .news-list-item {
        flex-direction: column; /* মোবাইলে ইমেজ উপরে, লেখা নিচে */
    }
    
    .news-thumbnail {
        flex: auto;
        height: 180px;
    }
}
/* ==========================================
   Brands Page Layout (Clean Grid)
   ========================================== */
.clean-brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.clean-brand-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    padding: 20px 10px;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.clean-brand-card:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* ==========================================
   Filter Page Layout (MobileDokan Style 2-Column)
   ========================================== */
.filter-page-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 30px;
}

/* Sidebar Left */
.sidebar-filter {
    width: 250px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
}

.filter-widget {
    margin-bottom: 25px;
}

.widget-title {
    font-size: 15px;
    color: #cc0000; /* GSMArena/MobileDokan red accent */
    margin-bottom: 12px;
    border-left: 3px solid #cc0000;
    padding-left: 8px;
    text-transform: uppercase;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.price-inputs input {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.apply-filter-btn {
    width: 100%;
    background: #333;
    color: #fff;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 3px;
}

.apply-filter-btn:hover {
    background: var(--accent-color);
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
}

.filter-list li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
}

.filter-list input {
    margin-right: 6px;
}

/* Right Content Area */
.filter-results {
    flex: 1;
}

.results-header {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.result-title-area h1 {
    font-size: 20px;
    color: #333;
    margin-bottom: 5px;
    border: none;
}

.result-title-area p {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.result-tabs button {
    padding: 8px 25px;
    border: 1px solid #ccc;
    background: #f8f9fa;
    cursor: pointer;
    border-radius: 20px;
    margin: 0 5px;
    font-weight: 600;
}

.result-tabs button.active {
    background: var(--bg-main);
    border-color: #aaa;
}

/* Responsive for Filter Page */
@media(max-width: 768px) {
    .filter-page-layout {
        flex-direction: column;
    }
    .sidebar-filter {
        width: 100%;
    }
}
/* ==========================================================================
   Premium Blue Blur Header
   ========================================================================== */
:root {
    --header-bg: rgba(10, 25, 47, 0.85); /* Deep Blue with opacity */
    --header-blur: blur(12px);
    --accent-green: #00c853;
}

.main-header {
    background-color: var(--header-bg);
    backdrop-filter: var(--header-blur);
    -webkit-backdrop-filter: var(--header-blur);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-header.hide {
    transform: translateY(-100%);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
    padding: 0 20px;
}

/* Nav & Menus */
.desktop-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.desktop-nav a {
    color: #e6f1ff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.desktop-nav a:hover {
    color: var(--accent-green);
}

/* Search Form (Desktop) */
.desktop-search {
    flex: 1;
    max-width: 450px;
    margin: 0 20px;
    position: relative;
}

.search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-form input {
    background: transparent;
    border: none;
    color: white;
    padding: 10px 15px;
    width: 100%;
    outline: none;
}

.search-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-form button {
    background: transparent;
    border: none;
    color: white;
    padding: 0 15px;
    cursor: pointer;
}

.search-form button:hover {
    color: var(--accent-green);
}

/* Live Search Dropdown */
.search-results-dropdown, .search-results-dropdown-mobile {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
}

.search-item:hover { background: #f8f9fa; }
.search-item img { width: 40px; height: 40px; object-fit: contain; margin-right: 15px; }

/* Mobile elements hidden on Desktop */
.mobile-menu-toggle, .mobile-search-toggle, .mobile-search-bar, .mobile-sidebar, .sidebar-overlay {
    display: none;
}

/* ==========================================================================
   Mobile Responsiveness
   ========================================================================== */
@media (max-width: 768px) {
    .desktop-nav, .desktop-search { display: none; }

    .mobile-menu-toggle, .mobile-search-toggle {
        display: flex;
        color: white;
        cursor: pointer;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Pop-down Search Bar */
    .mobile-search-bar {
        display: none;
        padding: 10px 20px;
        background: rgba(10, 25, 47, 0.95);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .mobile-search-bar.active { display: block; }
    
    .mobile-search-bar .search-results-dropdown-mobile {
        position: relative;
        margin-top: 5px;
    }

    /* Slide-in Mobile Menu */
    .mobile-sidebar {
        display: block;
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: #0a192f;
        z-index: 2000;
        transition: left 0.3s ease;
        padding: 20px;
    }
    .mobile-sidebar.open { left: 0; }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 1999;
    }
    .sidebar-overlay.open { display: block; }
    
    .sidebar-close { color: white; font-size: 30px; text-align: right; cursor: pointer; margin-bottom: 20px; }
    
    .sidebar-nav { display: flex; flex-direction: column; gap: 15px; }
    .sidebar-nav a { color: white; font-size: 16px; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
}
/* ==========================================================================
   Header Layout Fixes
   ========================================================================== */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
    padding: 0 15px; /* প্যাডিং কমানো হয়েছে */
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 25px; /* ডেস্কটপে লোগোর হাইট ফিক্সড */
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
}

/* ==========================================================================
   Product Finder Box Fixes (Index Page)
   ========================================================================== */
.finder-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* গাদাগাদি এড়ানোর জন্য */
    gap: 15px;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 5px;
}

.range-inputs input {
    width: 90px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.filter-dropdowns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Mobile Responsiveness (আসল ম্যাজিক এখানে)
   ========================================================================== */
@media (max-width: 768px) {
    /* Header Fixes */
    .desktop-nav, .desktop-search { 
        display: none; 
    }

    .mobile-menu-toggle, .mobile-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        cursor: pointer;
        width: 40px; /* ট্যাপ করার জন্য স্পেস */
    }

    .logo {
        flex: 1; /* মাঝখানে রাখার জন্য */
        justify-content: center;
    }

    .logo-svg {
        height: 20px; /* মোবাইলে লোগো একটু ছোট হবে */
    }

    /* Finder Box Fixes (Index Page) */
    .finder-form {
        flex-direction: column;
        align-items: stretch; /* ফুল উইডথ করে দেবে */
    }
    
    .price-range {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .range-inputs {
        width: 100%;
        justify-content: space-between;
    }
    
    .range-inputs input {
        width: 45%; /* দুইটা ইনপুট অর্ধেক করে জায়গা নেবে */
    }
    
    .filter-dropdowns {
        flex-direction: column;
    }
    
    .filter-dropdowns select {
        width: 100%; /* ড্রপডাউনগুলো ফুল উইডথ হবে */
    }
    
    .find-btn {
        width: 100%; /* বাটন ফুল উইডথ হবে */
    }
}
/* ==========================================================================
   Premium Specifications Layout & Animations
   ========================================================================== */
.premium-specs-section {
    margin-top: 40px;
    margin-bottom: 50px;
}

/* Scroll Animation Base State */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Active State (Triggered by JS) */
.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

/* Card Style for Spec Groups */
.specs-group {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 25px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.specs-category {
    background: #f8f9fc;
    padding: 15px 20px;
    border-left: 4px solid var(--accent-color); /* Green left border */
    font-size: 17px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Clean Minimalist Table */
.specs-table-modern {
    width: 100%;
    border-collapse: collapse;
}

.specs-table-modern td {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f1f1;
    line-height: 1.6;
}

.specs-table-modern tr:last-child td {
    border-bottom: none;
}

.specs-table-modern td.spec-label {
    width: 25%;
    font-weight: 600;
    color: #6c757d;
    background: #fafbfc;
}

.specs-table-modern td.spec-value {
    color: #333;
}

/* ==========================================================================
   Smart Highlight Badges (The "Powerful" Marker)
   ========================================================================== */
.smart-badge {
    display: inline-block;
    background: rgba(0, 200, 83, 0.1); /* Light green background */
    color: #009624; /* Deep green text */
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9em;
    border: 1px solid rgba(0, 200, 83, 0.2);
    margin: 2px;
    box-shadow: 0 1px 2px rgba(0,200,83,0.1);
}

@media(max-width: 768px) {
    .specs-table-modern td {
        display: block;
        width: 100% !important;
    }
    .specs-table-modern td.spec-label {
        background: transparent;
        padding-bottom: 5px;
        color: #cc0000;
    }
    .specs-table-modern td.spec-value {
        padding-top: 0;
        font-size: 15px;
    }
}
/* Card Clickable Fix */
.phone-card {
    position: relative; /* এটি যোগ করতে হবে */
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer; /* পুরো কার্ডে মাউস নিলে পয়েন্টার দেখাবে */
}

/* এই ম্যাজিক কোডটি পুরো কার্ডকে লিংকের আওতায় নিয়ে আসবে */
.phone-card h3 a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.phone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}
/* ==========================================================================
   GSMArena Style Full Specifications Table
   ========================================================================== */
.gsm-specs-container {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 40px;
}

.gsm-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

.gsm-spec-table th, .gsm-spec-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.gsm-spec-table th.spec-cat {
    width: 15%;
    color: #cc0000; /* GSMArena Red */
    text-transform: uppercase;
    font-weight: 800;
    background: #fafafa;
    border-right: 1px solid #f0f0f0;
    vertical-align: middle;
}

.gsm-spec-table td.spec-label {
    width: 25%;
    font-weight: 700;
    color: #555;
}

.gsm-spec-table td.spec-value {
    color: #333;
    line-height: 1.5;
}

/* Responsive Table */
@media (max-width: 768px) {
    .gsm-spec-table th.spec-cat {
        display: block;
        width: 100%;
        border-right: none;
        background: #f4f4f4;
        text-align: left;
        padding-top: 15px;
    }
    .gsm-spec-table td {
        display: block;
        width: 100%;
    }
    .gsm-spec-table td.spec-label {
        font-size: 12px;
        color: #888;
        padding-bottom: 2px;
        border-bottom: none;
    }
    .gsm-spec-table td.spec-value {
        padding-top: 0;
        font-weight: 500;
    }
}
/* ==========================================================================
   GSMArena Exact Top Banner Clone
   ========================================================================== */
.gsm-top-wrap {
    background: linear-gradient(to bottom, #d6f2f8 0%, #ffffff 100%);
    border: 1px solid #d0d0d0;
    margin-top: 20px;
    margin-bottom: 30px;
}

.gsm-title-bar {
    background-color: #3bb2d0; /* GSMArena Blue Bar */
    padding: 10px 20px;
}

.gsm-title-bar h1 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    border: none;
    padding: 0;
}

.gsm-banner-content {
    display: flex;
    padding: 20px;
    gap: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.gsm-banner-img {
    flex: 0 0 160px;
    text-align: center;
}

.gsm-banner-img img {
    max-width: 100%;
    height: auto;
}

.gsm-banner-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gsm-quick-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gsm-quick-list li {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gsm-quick-list li svg {
    color: #555;
}

.gsm-stats-area {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.gsm-stat-box {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

.stat-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
}

.gsm-quick-specs-row {
    display: flex;
    background: #fff;
}

.gsm-qs-box {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-right: 1px solid #e0e0e0;
}

.gsm-qs-box:last-child {
    border-right: none;
}

.qs-icon svg {
    color: #555;
}

.qs-details strong {
    font-size: 18px;
    color: #333;
}

.qs-details span {
    font-size: 11px;
    color: #888;
    display: block;
}

/* ==========================================================================
   GSMArena Exact Table Layout
   ========================================================================== */
.gsm-specs-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-bottom: 40px;
}

.gsm-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.gsm-spec-table th, .gsm-spec-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.gsm-spec-table th.spec-cat {
    width: 12%;
    color: #d00; /* Exact GSMArena Red */
    text-transform: uppercase;
    font-weight: bold;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.gsm-spec-table td.spec-label {
    width: 18%;
    font-weight: bold;
    color: #555;
}

.gsm-spec-table td.spec-value {
    color: #333;
    line-height: 1.6;
}

/* Smart Badge (Kept to highlight powerful features) */
.smart-badge {
    display: inline-block;
    color: #009624;
    padding: 0 4px;
    border: 1px solid #00c853;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.9em;
    background: rgba(0, 200, 83, 0.05);
}

/* Responsive fixes */
@media (max-width: 768px) {
    .gsm-banner-content { flex-direction: column; align-items: center; }
    .gsm-quick-specs-row { flex-wrap: wrap; }
    .gsm-qs-box { flex: 50%; border-bottom: 1px solid #e0e0e0; border-right: none; }
    
    .gsm-spec-table th.spec-cat { display: block; width: 100%; background: #f8f8f8; padding-top: 15px; }
    .gsm-spec-table td { display: block; width: 100%; }
    .gsm-spec-table td.spec-label { padding-bottom: 2px; border: none; color: #888; }
}
/* ==========================================================================
   Single News & Blog Reading Page
   ========================================================================== */
.single-news-article {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    padding: 40px;
    margin-top: 30px;
    margin-bottom: 50px;
    border: 1px solid #eaeaea;
}

.news-header h1 {
    font-size: 34px;
    color: #111;
    margin-bottom: 15px;
    line-height: 1.3;
    border: none;
    padding: 0;
}

.news-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Category Badges */
.news-type {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
}
.badge-news { background: #e3f2fd; color: #1976d2; border: 1px solid #bbdefb; }
.badge-review { background: #fce4ec; color: #c2185b; border: 1px solid #f8bbd0; }
.badge-blog { background: #e8f5e9; color: #388e3c; border: 1px solid #c8e6c9; }

/* Featured Image */
.news-featured-image {
    margin-bottom: 40px;
    text-align: center;
}

.news-featured-image img {
    max-width: 100%;
    border-radius: 8px;
    height: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Typography for TinyMCE Content */
.news-body-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    font-family: 'Georgia', serif; /* Reading friendly font */
}

.news-body-content p {
    margin-bottom: 20px;
}

.news-body-content h2, .news-body-content h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #222;
    margin-top: 40px;
    margin-bottom: 20px;
}

.news-body-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .single-news-article { padding: 20px; }
    .news-header h1 { font-size: 26px; }
    .news-body-content { font-size: 16px; }
}
/* ==========================================================================
   Header & Navigation (Responsive & Smart)
   ========================================================================== */
.main-header {
    background-color: #1a202c; /* Modern Dark Slate Header */
    color: #ffffff;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Sizing */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.logo-svg {
    height: 28px; /* Desktop Logo Size - Sharp & Elegant */
    width: auto;
    display: block;
}

/* Search Bar (Desktop) */
.desktop-search {
    flex: 1;
    max-width: 450px;
    margin: 0 30px;
}
.search-form {
    display: flex;
    position: relative;
    width: 100%;
}
.live-search-input {
    width: 100%;
    padding: 10px 18px;
    border-radius: 25px 0 0 25px;
    border: none;
    outline: none;
    font-size: 14px;
    background: #2d3748; /* Slight contrast input */
    color: #fff;
}
.live-search-input::placeholder { color: #a0aec0; }
.search-form button {
    padding: 10px 20px;
    border-radius: 0 25px 25px 0;
    border: none;
    background: #00c853; /* Brand Green */
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}
.search-form button:hover { background: #009624; }

/* Desktop Navigation */
.header-right { display: flex; align-items: center; }
.desktop-nav { display: flex; gap: 25px; }
.desktop-nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
.desktop-nav a:hover { color: #00c853; }

/* Mobile Reset (Buttons instead of divs for accessibility) */
.mobile-menu-toggle, .mobile-search-toggle {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    display: none;
    padding: 5px;
}

/* Mobile Responsiveness */
@media (max-width: 800px) {
    .desktop-search { display: none; }
    .desktop-nav { display: none; }
    
    .mobile-menu-toggle, .mobile-search-toggle { 
        display: flex; 
        align-items: center; 
        justify-content: center;
    }
    
    .logo-svg { 
        height: 24px; /* Slightly smaller on Mobile */ 
    }
}