                                                                                /* =========================
   RESET + BASE
========================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Inter,sans-serif;
  -webkit-tap-highlight-color:transparent;
}

body{
  background:#ffffff;
  color:#202124;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

/* =========================
   GLOBAL TOKENS
========================= */

:root{

  --accent:linear-gradient(90deg,#1a73e8,#34a853);

  /* sidebar */
  --menu-bg:#ffffff;
  --menu-border:#e5e7eb;
  --menu-shadow:2px 0 20px rgba(0,0,0,0.18);
  --menu-item-bg:#f8fafc;
  --menu-hover:#eef2ff;
  --menu-active:#e8f0fe;
  --menu-accent:#1a73e8;
  --menu-text:#202124;

  /* cards */
  --card-bg:#ffffff;
  --card-border:#e5e7eb;
  --card-shadow:0 12px 28px rgba(0,0,0,0.08);
  --card-radius:18px;

  --title:#1a73e8;
  --text:#202124;
  --muted:#5f6368;

  --space-sm:8px;
  --space-md:14px;
  --space-lg:22px;
}

/* =========================
   HEADER
========================= */

.site-header{
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,0.18);
  padding:14px 18px;
  display:flex;
  align-items:center;
}

.header-left{
  display:flex;
  align-items:center;
  gap:14px;
}

.menu{
  background:none;
  border:none;
  cursor:pointer;
}

.menu span{
  display:block;
  width:20px;
  height:2px;
  background:#333;
  margin:4px 0;
}

.logo{
  font-weight:700;
  font-size:18px;
  color:#1a73e8;
}

.logo span{color:#000;}

/* =========================
   HERO
========================= */

.hero{
  text-align:center;
  padding:70px 16px 60px;
}

.hero h1{
  font-size:28px;
  font-weight:500;
  margin-top:40px;     /* ← উপরের ফাঁকা জায়গা */
  margin-bottom:30px;
  line-height:1.3;
  background:var(--accent);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

/* =========================
   SEARCH
========================= */

.search-box{
  max-width:600px;
  margin:0 auto 28px;
  background:#fff;
  border:1px solid rgba(0,0,0,0.22);
  border-radius:16px;
  padding:14px 20px;

  display:flex;
  align-items:center;
  gap:10px;

  transform:translateY(-3px);
  box-shadow:0 3px 10px rgba(0,0,0,0.10);
  transition:all .2s ease;
}

.search-box:hover{
  transform:translateY(-4px);
  box-shadow:0 6px 14px rgba(0,0,0,0.14);
}

.search-box:focus-within{
  border-color:#1a73e8;
  box-shadow:0 0 0 2px rgba(26,115,232,.12);
}

.search-box input{
  border:none;
  outline:none;
  width:100%;
  font-size:14px;
  background:transparent;
}

.search-icon{
  opacity:.6;
  font-size:15px;
}

/* =========================
   CATEGORY GRID
========================= */

.categories{padding:20px 6px;}

.group-title{
  max-width:1100px;
  margin:30px auto 12px;
  font-size:16px;
  font-weight:600;
  text-align:center;
}

.category-grid{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}

.tile{
  background:#fff;
  border:1px solid rgba(0,0,0,0.22);
  border-radius:12px;
  padding:12px 16px;
  text-decoration:none;
  color:#202124;
  font-size:15px;
  display:flex;
  align-items:center;
  gap:12px;
  box-shadow:0 1px 2px rgba(0,0,0,0.04);
  transition:transform .15s ease,
             box-shadow .15s ease,
             background .15s ease,
             border-color .15s ease;
}

.tile:hover{
  background:#f1f3f4;
  border-color:#1a73e8;
  transform:translateY(-2px);
  box-shadow:0 6px 14px rgba(0,0,0,0.12);
}

.tile:active{
  transform:scale(.98);
  box-shadow:0 1px 2px rgba(0,0,0,0.06);
}

.app-icon{
  width:31px;
  height:31px;
  object-fit:contain;
}

/* =========================
   HERO APP LOGO
========================= */

.app-hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 25px; /* নিচের সার্চ বক্স থেকে দূরত্ব বাড়াবে */
}

.app-hero-logo img {
  width: 50px; /* এখানে সাইজ বাড়িয়ে দিন */
  height: 50px;
  object-fit: contain;
  margin-top: 20px; /* ওপর থেকে একটু গ্যাপ দিতে পারেন */
}

/* =========================
   EXPAND LINE
========================= */

.expand-line{
  width:100%;
  margin:50px 0;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.expand-line::before,
.expand-line::after{
  content:"";
  flex:1;
  height:1px;
  background:rgba(0,0,0,0.25);
  margin:0;
}

.expand-line .arrow{
  width:58px;
  height:58px;
  border-radius:50%;
  background:#fff;
  color:#1a73e8;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  border:2px solid rgba(0,0,0,0.25);
  box-shadow:0 2px 4px rgba(0,0,0,0.1);
  transition:.25s ease;
}

.expand-line.active .arrow{
  background:#e8f0fe;
  border-color:#1a73e8;
  transform:rotate(180deg);
}

.hidden{display:none;}

/* =========================
   SIDEBAR — FINAL CLEAN (FIXED & RESPONSIVE)
========================= */ 

.side-menu {
  position: fixed;
  top: 0;
  left: -280px; /* একটু চওড়া করা হয়েছে যাতে দেখতে সুন্দর লাগে */
  width: 280px;
  height: 100%; 

  display: flex;
  flex-direction: column; 

  background: var(--menu-bg);
  box-shadow: var(--menu-shadow); 

  transition: left .3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: left; 

  z-index: 1000;
  overflow: hidden; /* মূল বডিতে স্ক্রল বন্ধ */
}

.side-menu.show {
  left: 0;
}

/* ১. সাইডবার হেডার (স্থির থাকবে) */
.side-header {
  padding: 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.side-brand {
  font-size: 19px;
  font-weight: 700;
  color: var(--menu-accent);
}

.side-close {
  background: #f1f3f4;
  border: none;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  color: #5f6368;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ২. মেইন কন্টেন্ট (শুধুমাত্র এই অংশটি স্ক্রল হবে) */
.side-main {
  padding: 16px 12px;
  flex: 1; 
  overflow-y: auto; 
  -webkit-overflow-scrolling: touch; /* আইওএস স্ক্রল স্মুথ করার জন্য */
  
  /* নতুন যোগ করা লাইন: এটি বাড়তি সাদা অংশ আসা বন্ধ করবে */
  overscroll-behavior-y: contain; 
}

.side-main a {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  margin-bottom: 10px;

  background: #f8fafc;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;

  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--menu-text);

  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: all .2s ease;
}

.side-main a:hover {
  background: var(--menu-hover);
  color: var(--menu-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.side-main a.active {
  background: #e8f0fe;
  border-color: #1a73e8;
  color: #1a73e8;
}

/* ৩. নিচের লিগ্যাল অংশ (এটি সবসময় নিচে আটকে থাকবে) */
.side-legal {
  padding: 16px;
  background: #f8f9fa; /* হালকা আলাদা রঙ যাতে সেকশনটি বোঝা যায় */
  border-top: 1px solid var(--menu-border);
  flex-shrink: 0; 
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

.side-legal a {
  text-decoration: none;
  font-size: 13px;
  color: #5f6368;
  padding: 6px 0;
  transition: color 0.2s;
}

.side-legal a:hover {
  color: var(--menu-accent);
  text-decoration: underline;
}

/* ৪. ওভারলে (মেনু খুললে ব্যাকগ্রাউন্ড ঝাপসা করা) */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px); /* ঝাপসা ইফেক্ট */
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 999;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   FACEBOOK BIG CARD STYLE
========================= */

.fb-list{
  width:100%;
  max-width:1100px;
  margin:0 auto;
  padding:20px 12px 40px;
}

.fb-item{
  background:#fff;
  border:1px solid rgba(0,0,0,0.22);
  border-radius:8px;
  margin-bottom:8px;
  overflow:hidden;
  box-shadow:0 1px 2px rgba(0,0,0,0.05);
}

.fb-header{
  padding:12px 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  color:#202124;
}

.fb-arrow{
  font-size:20px;
  transition:transform .2s ease, color .2s ease;
  color:#666;
}

.fb-item.active .fb-arrow{
  transform:rotate(180deg);
  color:#1a73e8;
}

.fb-body{
  display:none;
  border-top:1px solid #e5e7eb;
  background:#f8f9fa;
}

.fb-body a{
  display:block;
  padding:10px 18px;
  text-decoration:none;
  color:#202124;
  border-bottom:1px solid #e5e7eb;
  font-size:14px;
}

.fb-body a:hover{
  background:#e8f0fe;
}

.fb-body a:last-child{
  border-bottom:none;
}
/* =========================
   FOOTER
========================= */

.site-footer{
  text-align:center;
  padding:16px 12px;
  font-size:13px;
  color:#5f6368;
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:6px;
}

/* footer ছোট লেখা */
.footer-note{
  font-size:10px;
  color:#5f6368;
  opacity:.85;
}

/* =========================
   RESPONSIVE GRID
========================= */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px;
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}                                                                                    

/* =========================
   SEARCH BOX
========================= */

.search-box{
  position:relative;
  max-width:600px;
  margin:0 auto 28px;
  background:#fff;
  border:1px solid rgba(0,0,0,0.22);
  border-radius:16px;
  padding:14px 20px;
  display:flex;
  align-items:center;
  gap:10px;
  box-shadow:0 3px 10px rgba(0,0,0,0.10);
}

.search-box input{
  border:none;
  outline:none;
  width:100%;
  font-size:14px;
  background:transparent;
}

.search-icon{
  opacity:.6;
  font-size:15px;
}

/* =========================
   SEARCH DROPDOWN
========================= */

#searchResults{
  position:absolute;
  top:100%;
  left:0;
  width:100%;
  background:#fff;
  border-radius:12px;
  margin-top:6px;
  box-shadow:0 10px 25px rgba(0,0,0,0.12);
  overflow:hidden;
  z-index:999;
  max-height:300px;
  overflow-y:auto;
  display:none;
}

#searchResults a{
  display:block;
  padding:12px 16px;
  text-decoration:none;
  font-size:14px;
  color:#202124;
  transition:background .15s ease;
}

#searchResults a:hover{
  background:#f1f3f4;
}