/*!
 * shell-0fd5a3.css
 * takabet.homes - shared mobile-first styles (basefiles)
 * All custom classes / variables use the "w0fd5-" prefix.
 * Palette: #34495E (deep slate, background), #95A5A6 (muted grey), #E9ECEF (light surface/text).
 */

:root {
  --w0fd5-bg: #34495E;
  --w0fd5-bg-2: #2c3e50;
  --w0fd5-bg-3: #3b5163;
  --w0fd5-muted: #95A5A6;
  --w0fd5-surface: #E9ECEF;
  --w0fd5-surface-2: #f5f7fa;
  --w0fd5-text: #f3f6f8;
  --w0fd5-text-soft: #c7d0d6;
  --w0fd5-accent: #f5b301;
  --w0fd5-accent-2: #ffd95c;
  --w0fd5-danger: #e74c3c;
  --w0fd5-line: rgba(233, 236, 239, 0.14);
  --w0fd5-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
  --w0fd5-radius: 14px;
  --w0fd5-radius-sm: 10px;
  --w0fd5-header-h: 56px;
  --w0fd5-bnav-h: 62px;
  --w0fd5-maxw: 430px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--w0fd5-bg);
  color: var(--w0fd5-text);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  /* Always reserve space for fixed bottom nav */
  padding-bottom: calc(var(--w0fd5-bnav-h) + 14px);
}

a { color: var(--w0fd5-accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; display: block; }

.w0fd5-wrap {
  width: 100%;
  max-width: var(--w0fd5-maxw);
  margin: 0 auto;
  padding: 0 12px;
}

/* ============ Top header (tabbed bar) ============ */
.w0fd5-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--w0fd5-header-h);
  background: linear-gradient(180deg, var(--w0fd5-bg-2), var(--w0fd5-bg));
  border-bottom: 1px solid var(--w0fd5-line);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}

.w0fd5-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  max-width: var(--w0fd5-maxw);
  margin: 0 auto;
}

.w0fd5-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.w0fd5-brand img.w0fd5-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--w0fd5-line);
  background: var(--w0fd5-surface);
  flex: 0 0 auto;
}

.w0fd5-brand-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.3px;
  color: var(--w0fd5-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w0fd5-brand-name span { color: var(--w0fd5-accent); }

.w0fd5-hbtn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.w0fd5-hbtn:active { transform: translateY(1px); }

.w0fd5-hbtn.w0fd5-hlogin {
  background: rgba(233, 236, 239, 0.12);
  color: var(--w0fd5-surface);
  border: 1px solid var(--w0fd5-line);
}
.w0fd5-hbtn.w0fd5-hreg {
  background: linear-gradient(135deg, var(--w0fd5-accent), var(--w0fd5-accent-2));
  color: #2a1d00;
  box-shadow: 0 4px 12px rgba(245, 179, 1, 0.32);
}

.w0fd5-menu-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(233, 236, 239, 0.10);
  border: 1px solid var(--w0fd5-line);
  color: var(--w0fd5-surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.w0fd5-menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--w0fd5-surface);
  position: relative;
}
.w0fd5-menu-btn span::before,
.w0fd5-menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--w0fd5-surface);
}
.w0fd5-menu-btn span::before { top: -5px; }
.w0fd5-menu-btn span::after { top: 5px; }

/* ============ Expandable menu ============ */
.w0fd5-menu {
  position: absolute;
  top: var(--w0fd5-header-h);
  left: 0;
  right: 0;
  background: var(--w0fd5-bg-2);
  border-bottom: 1px solid var(--w0fd5-line);
  box-shadow: var(--w0fd5-shadow);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.26s ease;
  z-index: 55;
}
.w0fd5-menu-open { max-height: 460px; }
.w0fd5-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 10px 12px 14px;
  max-width: var(--w0fd5-maxw);
  margin: 0 auto;
}
.w0fd5-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(233, 236, 239, 0.06);
  color: var(--w0fd5-surface);
  font-size: 13.5px;
  text-align: center;
}
.w0fd5-menu a:hover { text-decoration: none; background: rgba(245, 179, 1, 0.18); }
.w0fd5-menu a.w0fd5-current {
  background: linear-gradient(135deg, rgba(245, 179, 1, 0.25), rgba(255, 217, 92, 0.18));
  color: var(--w0fd5-accent-2);
}

/* ============ Hero / carousel ============ */
.w0fd5-hero {
  margin: 12px 0 4px;
}
.w0fd5-carousel {
  position: relative;
  border-radius: var(--w0fd5-radius);
  overflow: hidden;
  background: var(--w0fd5-bg-3);
  box-shadow: var(--w0fd5-shadow);
}
.w0fd5-carousel-viewport {
  overflow: hidden;
}
.w0fd5-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(.25,.7,.35,1);
  will-change: transform;
}
.w0fd5-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}
.w0fd5-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.w0fd5-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,0.68), rgba(0,0,0,0));
  font-size: 13px;
  color: #fff;
}
.w0fd5-slide-caption strong { display: block; font-size: 15px; color: var(--w0fd5-accent-2); margin-bottom: 2px; }

.w0fd5-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 4px;
}
.w0fd5-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(233, 236, 239, 0.35);
  border: none; cursor: pointer;
}
.w0fd5-carousel-dot.w0fd5-dot-active { background: var(--w0fd5-accent); transform: scale(1.15); }

/* ============ Section headers ============ */
.w0fd5-section { margin: 18px 0 6px; }
.w0fd5-section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--w0fd5-surface);
  display: flex;
  align-items: center;
  gap: 8px;
}
.w0fd5-section-title::before {
  content: "";
  width: 4px; height: 18px; border-radius: 3px;
  background: linear-gradient(180deg, var(--w0fd5-accent), var(--w0fd5-accent-2));
}
.w0fd5-section-title small {
  font-size: 12px; color: var(--w0fd5-muted); font-weight: 500;
  margin-left: auto;
}

/* ============ Game grid ============ */
.w0fd5-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.w0fd5-game {
  background: var(--w0fd5-bg-3);
  border: 1px solid var(--w0fd5-line);
  border-radius: var(--w0fd5-radius-sm);
  padding: 5px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}
.w0fd5-game:hover { text-decoration: none; border-color: rgba(245, 179, 1, 0.45); }
.w0fd5-game:active { transform: translateY(2px); }
.w0fd5-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--w0fd5-bg-2);
}
.w0fd5-game-name {
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--w0fd5-text-soft);
  line-height: 1.25;
  min-height: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Larger 5-col on wider phones */
@media (min-width: 375px) {
  .w0fd5-game-grid { grid-template-columns: repeat(5, 1fr); gap: 9px; }
}

/* ============ Promo banners ============ */
.w0fd5-cta {
  background: linear-gradient(135deg, #2a3b4e, #3e5468);
  border: 1px solid var(--w0fd5-line);
  border-radius: var(--w0fd5-radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  box-shadow: var(--w0fd5-shadow);
}
.w0fd5-cta-text { flex: 1 1 auto; min-width: 0; }
.w0fd5-cta-text h3 { margin: 0 0 4px; font-size: 16px; color: var(--w0fd5-accent-2); }
.w0fd5-cta-text p { margin: 0; font-size: 12.5px; color: var(--w0fd5-text-soft); }
.w0fd5-cta-btn {
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--w0fd5-accent), var(--w0fd5-accent-2));
  color: #2a1d00;
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  min-height: 40px;
}

/* ============ Article / SEO content ============ */
.w0fd5-article {
  background: var(--w0fd5-bg-2);
  border: 1px solid var(--w0fd5-line);
  border-radius: var(--w0fd5-radius);
  padding: 16px;
  margin: 14px 0;
  color: var(--w0fd5-text-soft);
  font-size: 14.5px;
}
.w0fd5-article h2 {
  color: var(--w0fd5-surface);
  font-size: 17px;
  margin: 18px 0 8px;
}
.w0fd5-article h2:first-child { margin-top: 0; }
.w0fd5-article h3 { color: var(--w0fd5-accent-2); font-size: 15px; margin: 14px 0 6px; }
.w0fd5-article p { margin: 0 0 10px; }
.w0fd5-article ul { padding-left: 18px; margin: 0 0 10px; }
.w0fd5-article li { margin: 0 0 6px; }

.w0fd5-article a { color: var(--w0fd5-accent-2); }

/* Inline promo link */
.w0fd5-plink {
  color: var(--w0fd5-accent-2);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ============ Cards / info blocks ============ */
.w0fd5-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 10px 0;
}
.w0fd5-card {
  background: var(--w0fd5-bg-3);
  border: 1px solid var(--w0fd5-line);
  border-radius: var(--w0fd5-radius-sm);
  padding: 12px;
}
.w0fd5-card h4 { margin: 0 0 4px; font-size: 14px; color: var(--w0fd5-accent-2); }
.w0fd5-card p { margin: 0; font-size: 12.5px; color: var(--w0fd5-text-soft); }
.w0fd5-card .w0fd5-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--w0fd5-bg-2);
  background: var(--w0fd5-accent-2);
  border-radius: 999px;
  padding: 1px 8px;
  margin-bottom: 6px;
}

/* Testimonials */
.w0fd5-quote {
  background: var(--w0fd5-bg-3);
  border-left: 3px solid var(--w0fd5-accent);
  border-radius: 0 var(--w0fd5-radius-sm) var(--w0fd5-radius-sm) 0;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--w0fd5-text-soft);
}
.w0fd5-quote strong { display: block; color: var(--w0fd5-surface); font-size: 13.5px; margin-bottom: 2px; }
.w0fd5-quote small { color: var(--w0fd5-muted); }

/* FAQ */
.w0fd5-faq { margin: 6px 0; }
.w0fd5-faq details {
  background: var(--w0fd5-bg-3);
  border: 1px solid var(--w0fd5-line);
  border-radius: var(--w0fd5-radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
}
.w0fd5-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--w0fd5-surface);
  font-size: 14px;
  list-style: none;
}
.w0fd5-faq summary::-webkit-details-marker { display: none; }
.w0fd5-faq summary::before { content: "+ "; color: var(--w0fd5-accent); margin-right: 4px; }
.w0fd5-faq details[open] summary::before { content: "– "; }
.w0fd5-faq p { margin: 8px 0 0; font-size: 13px; color: var(--w0fd5-text-soft); }

/* ============ Extended footer directory ============ */
.w0fd5-extended {
  margin: 18px 0 10px;
  background: var(--w0fd5-bg-2);
  border: 1px solid var(--w0fd5-line);
  border-radius: var(--w0fd5-radius);
  padding: 14px;
}
.w0fd5-extended h3 {
  font-size: 15px;
  color: var(--w0fd5-surface);
  margin: 0 0 8px;
  display: flex; align-items: center; gap: 6px;
}
.w0fd5-extended h3::before {
  content: ""; width: 4px; height: 14px;
  background: var(--w0fd5-accent); border-radius: 2px;
}
.w0fd5-dir {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  margin: 4px 0 10px;
}
.w0fd5-dir a {
  font-size: 12.5px;
  color: var(--w0fd5-text-soft);
  padding: 4px 0;
  border-bottom: 1px dashed var(--w0fd5-line);
}
.w0fd5-promo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 6px 0 10px;
}
.w0fd5-promo-row button, .w0fd5-promo-row a.w0fd5-plink-btn {
  background: linear-gradient(135deg, rgba(245,179,1,0.18), rgba(255,217,92,0.12));
  border: 1px solid rgba(245, 179, 1, 0.4);
  color: var(--w0fd5-accent-2);
  padding: 9px 8px;
  font-size: 12.5px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  display: block;
  min-height: 40px;
}
.w0fd5-brand-intro {
  font-size: 12.5px;
  color: var(--w0fd5-muted);
  margin: 6px 0 10px;
  line-height: 1.55;
}
.w0fd5-disclaimer {
  font-size: 11.5px;
  color: var(--w0fd5-muted);
  border-top: 1px solid var(--w0fd5-line);
  padding-top: 8px;
  margin-top: 6px;
}

/* ============ Footer (copyright) ============ */
.w0fd5-foot {
  text-align: center;
  color: var(--w0fd5-muted);
  font-size: 11.5px;
  padding: 10px 0 6px;
  border-top: 1px solid var(--w0fd5-line);
  margin-top: 12px;
}
.w0fd5-foot a { color: var(--w0fd5-muted); margin: 0 4px; }

/* ============ Bottom navigation (segmented action bar) ============ */
.w0fd5-bnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--w0fd5-bnav-h);
  background: linear-gradient(180deg, var(--w0fd5-bg-2), #1f2c39);
  border-top: 1px solid var(--w0fd5-line);
  z-index: 70;
  box-shadow: 0 -3px 14px rgba(0,0,0,0.28);
}
.w0fd5-bnav-inner {
  height: 100%;
  max-width: var(--w0fd5-maxw);
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 4px;
}
.w0fd5-bnav-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--w0fd5-muted);
  font-size: 10.5px;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 2px;
  position: relative;
  transition: transform 0.14s ease, color 0.18s ease;
  min-height: 44px;
}
.w0fd5-bnav-item:active { transform: translateY(-2px); }
.w0fd5-bnav-item.w0fd5-current {
  color: var(--w0fd5-accent-2);
}
.w0fd5-bnav-item.w0fd5-current::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px; height: 22px;
  background: rgba(245, 179, 1, 0.16);
  border-radius: 0 0 12px 12px;
}
.w0fd5-bnav-item span.w0fd5-ico {
  display: block;
  width: 22px; height: 22px;
  position: relative;
}
.w0fd5-bnav-item span.w0fd5-ico svg { width: 22px; height: 22px; display: block; }
.w0fd5-bnav-item.w0fd5-promo { color: var(--w0fd5-accent-2); }
.w0fd5-bnav-item.w0fd5-promo span.w0fd5-ico svg { fill: var(--w0fd5-accent); }

/* Helper visibility */
.w0fd5-hide { display: none !important; }

/* Long content hygiene */
.w0fd5-spacer { height: 8px; }
