/**
 * =====================================================================
 * Face Shape Detector Lab (faceshapedetectorlab.com)
 * Trustpilot Master Design System (Mobile-Perfect Stylesheet)
 * Developer: Alok Dey (https://alokdey.xyz)
 * =====================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --tp-green: #00b67a;
  --tp-green-hover: #009664;
  --tp-green-glow: rgba(0, 182, 122, 0.3);
  
  --bg-dark: #0d111a;
  --bg-card: #131926;
  --border-color: rgba(255, 255, 255, 0.08);
  
  --text-white: #ffffff;
  --text-gray: #94a3b8;
  --text-muted: #64748b;
  
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-main: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.lab-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header Navbar Architecture */
.lab-navbar {
  background: #111726;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.65rem 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo img {
  height: 48px !important; /* লোগোর হাইট বাড়িয়ে বড় করা হয়েছে */
  width: auto !important;
  max-width: 240px;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .brand-logo img {
    height: 40px !important; /* মোবাইলে পারফেক্ট বড় সাইজ */
    max-width: 190px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.caret {
  font-size: 0.75rem;
  color: var(--tp-green);
}

/* Desktop Dropdown Menus */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #182238;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.6rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.6);
  z-index: 120;
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dropdown-item:hover {
  background: #202c48;
  color: var(--tp-green);
  transform: translateX(4px);
}

/* Nav Actions Area */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 182, 122, 0.1);
  border: 1px solid rgba(0, 182, 122, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.tp-star-box {
  background: var(--tp-green);
  color: #05140e;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Fix: Buttons MUST NOT break into multiple lines or become circular blobs */
.btn-tp-primary, .btn-apple-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--tp-green);
  color: #03130d;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap; /* Prevents 3-line text wrapping */
  box-shadow: 0 4px 14px var(--tp-green-glow);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-tp-primary:hover, .btn-apple-primary:hover {
  background: #10d592;
  transform: translateY(-1px);
}

.btn-tp-secondary, .btn-apple-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* Mobile Hamburger Button */
.hamburger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer Overlay & Container (Z-Index Fixed) */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 99998;
}

.mobile-overlay.active {
  display: block !important;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 290px;
  max-width: 85vw;
  height: 100vh;
  background: #111726;
  border-left: 1px solid var(--border-color);
  padding: 1.5rem 1.25rem;
  z-index: 99999;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0,0,0,0.8);
}

.mobile-drawer.open {
  right: 0 !important;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.close-drawer-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-gray);
  font-size: 1.1rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--tp-green);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 1.25rem 0 0.5rem 0;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
}

.drawer-link:hover {
  background: #182238;
  color: var(--tp-green);
}

/* Glass Panels & Directory Cards */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main);
  transition: all 0.25s ease;
}

.glass-panel:hover {
  border-color: rgba(0, 182, 122, 0.4);
}

/* Forbes-Style Editorial Standards */
.editorial-article {
  max-width: 860px;
  margin: 3.5rem auto;
  font-size: 1.125rem;
  line-height: 1.85;
  color: #cbd5e1;
}

.editorial-article h1,
.editorial-article h2,
.editorial-article h3 {
  color: var(--text-white);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
}

.editorial-article h2 {
  font-size: 1.85rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
}

.editorial-article a {
  color: var(--tp-green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.quick-answer-card {
  background: linear-gradient(135deg, rgba(0, 182, 122, 0.1) 0%, rgba(56, 189, 248, 0.04) 100%);
  border: 1px solid rgba(0, 182, 122, 0.35);
  border-left: 4px solid var(--tp-green);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.quick-answer-card .badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tp-green);
  margin-bottom: 0.5rem;
}

.key-takeaways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.takeaway-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.data-table-wrapper {
  overflow-x: auto;
  margin: 2.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.lab-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.lab-data-table th {
  background: #182238;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid var(--border-color);
}

.lab-data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-gray);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-gray);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.lab-footer {
  margin-top: auto;
  background: #080b12;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem 0;
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .desktop-nav, .desktop-only { display: none !important; }
  .hamburger-btn { display: inline-flex !important; }
  
  .header-cta-btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
  }
}