/* ====== RESET & BASE ====== */

/* Import Bengali-friendly font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;700&display=swap');
/* Import Font Awesome icons for professional navigation icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /* Use a Bengali-friendly font as the primary font */
  font-family: 'Noto Sans Bengali', sans-serif;
  background: #f5f7fb;
  color: #222;
  /*
   * Provide top and bottom padding so that the fixed header and
   * bottom navigation bar do not overlap the page content. The top
   * padding matches the approximate height of the header (about 60px)
   * and the bottom padding matches the height of the mobile bottom
   * navigation bar. Without these paddings, content could be hidden
   * underneath the fixed bars on small screens.
   */
  padding-top: 60px;
  padding-bottom: 70px; /* bottom fixed nav এর জন্য জায়গা */
}

a {
  text-decoration: none;
  color: inherit;
}

/* ====== HEADER / NAVBAR (TOP) ====== */
header {
  position: sticky;
  top: 0;
  background: #ffffff;                 /* সাদা header */
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  z-index: 100;
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.logo {
  font-weight: bold;
  font-size: 1.4rem;
  color: #111827;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 16px;
}

.nav-links li a {
  font-size: 0.95rem;
  padding: 6px 0;
  color: #111827;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-block;
}

.btn.primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.btn.ghost {
  border-color: rgba(17, 24, 39, 0.15);
  background: #ffffff;
  color: #111827;
}

.btn:hover {
  opacity: 0.9;
}

.toggle-pill {
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.15);
  padding: 4px 8px;
  font-size: 0.8rem;
  display: flex;
  gap: 4px;
  background: rgba(249, 250, 251, 0.9);
  color: #111827;
}

/* ====== HERO SECTION ====== */
.hero {
  max-width: 1100px;
  margin: 40px auto 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 0 16px;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.hero p {
  margin-bottom: 16px;
  color: #4b5563;
}

.hero-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-card {
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.stats {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.stat {
  background: #f3f4ff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.85rem;
}

/* ====== GENERIC SECTIONS ====== */
/* সব পেজকে ফুল স্ক্রিন করার জন্য */
.section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px 16px; /* চাইলে 0 করতে পারো */
    box-sizing: border-box;
}


.section h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

/* ====== CATEGORIES ====== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.category-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.category-card span.icon {
  font-size: 1.8rem;
}

.category-card h3 {
  margin: 8px 0 4px;
  font-size: 1rem;
}

/* ====== JOBS ====== */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.job-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.job-meta {
  font-size: 0.85rem;
  color: #4b5563;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  font-size: 0.75rem;
}

/* ====== TESTIMONIALS ====== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.testimonial {
  background: #fff;
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.06);
  font-size: 0.9rem;
}

/* ====== FAQ ====== */
.faq-item {
  background: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.faq-item h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

/* ====== FOOTER ====== */
.site-footer {
  margin-top: 40px;
  background: #0f172a;
  color: #e5e7eb;
  padding: 30px 16px 70px; /* নিচে বেশি padding, bottom nav যেন overlap না করে */
}

.site-footer .footer-top {
  max-width: 1100px;
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.site-footer .footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding-top: 8px;
  text-align: center;
}

/* ====== FORM / TABLE / CARDS ====== */
.form-container {
  max-width: 480px;
  margin: 24px auto;
  background: #ffffff;
  padding: 24px;
  border-radius: 20px;
  /* subtle gradient and deeper shadow for 3D look */
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  box-shadow:
    0 4px 8px rgba(15, 23, 42, 0.05),
    0 8px 16px rgba(15, 23, 42, 0.05),
    0 12px 24px rgba(15, 23, 42, 0.04);
}

.form-group {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #f9fafb;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.07), inset 0 -1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.1s ease, background-color 0.1s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.alert {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.alert.error {
  background: #fee2e2;
  color: #991b1b;
}

.alert.success {
  background: #dcfce7;
  color: #166534;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.9rem;
  background: #fff;
}

.table th,
.table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.card {
  background: #ffffff;
  padding: 16px;
  border-radius: 16px;
  /* multiple layered shadows for depth */
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 4px 8px rgba(15, 23, 42, 0.06),
    0 8px 16px rgba(15, 23, 42, 0.05);
  font-size: 0.9rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    margin: 20px auto 10px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .nav-links {
    display: none; /* মোবাইলে উপরের বড় মেনু লুকাবো, নিচের bottom nav থাকবে */
  }
}

/* ====== FIXED BOTTOM NAVBAR (DARK) ====== */
/*
 * Mobile bottom navigation bar
 *
 * For a cleaner, brighter look on small screens the bottom nav now uses a
 * white background instead of the previous dark tone.  The icons are
 * slightly smaller to prevent them from overwhelming the UI and a gentle
 * inset shadow gives the bar a subtle 3D appearance so it feels raised
 * from the page content.  The border-radius on the top corners softens
 * the edges and helps the bar stand apart on mobile devices.  See the
 * corresponding media query below for further tweaks on very narrow
 * screens.
 */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;              /* white background for modern feel */
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05), 0 -1px 3px rgba(0, 0, 0, 0.03);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  z-index: 999;
}

/* Hide the mobile bottom nav on larger screens (desktop and tablets) */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.mobile-nav-item {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  /* darker colour to contrast against white bottom nav */
  color: #1e293b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.mobile-nav-item i {
  /* Font Awesome icons for the mobile nav bar */
  font-size: 1.2rem;    /* slightly smaller icons */
  line-height: 1;
  color: inherit;        /* icons inherit text colour */
}

/* ====== DASHBOARD MOBILE LAYOUT ====== */
/* On narrow screens hide the left sidebar and stack the dashboard layout vertically */
@media (max-width: 768px) {
  /* Hide sidebar on mobile */
  .dash-sidebar {
    display: none;
  }
  /* Stack the shell vertically rather than side-by-side */
  .dashboard-shell {
    flex-direction: column;
  }
  /* Expand the main content to fill the full width */
  .dash-main-wrap {
    width: 100% !important;
  }

  /* The header is now fixed globally; the body has top padding globally.
     No need to override these properties here. */
}

.mobile-nav-item .label {
  line-height: 1;
}

.mobile-nav-item.active,
.mobile-nav-item:active {
  color: #f59e0b;       /* active হলে সাইট অ্যাকসেন্ট রঙ */
}

@media (max-width: 768px) {
  .site-footer {
    display: none;
  }
}

/* ====== FEED (Facebook-like, reactions slide, comment fixed) ====== */

/* main container */
.feed-container {
  max-width: 600px;
  margin: 8px auto 72px;
  padding: 0 8px;
}

/* composer */
.feed-composer {
  background: #ffffff;
  border-radius: 16px;
  padding: 8px 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.feed-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #111827;
  flex-shrink: 0;
}

.feed-avatar.small {
  width: 36px;
  height: 36px;
}

.avatar-letter {
  font-size: 1.1rem;
}

.feed-composer-main {
  flex: 1;
}

.feed-textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  font-size: 0.9rem;
  resize: none;
  background: #f3f4f6;
}

.feed-textarea:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
}

.feed-composer-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.feed-image-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  font-size: 0.8rem;
}

/* single post */
.feed-post {
  background: #ffffff;
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  margin-bottom: 10px;
}

.feed-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-header-text {
  flex: 1;
}

.feed-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.feed-meta {
  font-size: 0.75rem;
  color: #6b7280;
}

.feed-body {
  margin-top: 6px;
}

.feed-text {
  font-size: 0.9rem;
  color: #111827;
}

/* image */
.feed-image {
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  max-height: 360px;
}

.feed-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* actions row – react গুলো slide হবে, comment fix থাকবে */
.feed-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #e5e7eb;
}

/* শুধু এই div scroll করবে */
.feed-reactions-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 4px;
  flex: 1 1 auto;
}

/* scrollbar লুকিয়ে দিচ্ছি */
.feed-reactions-scroll::-webkit-scrollbar {
  display: none;
}
.feed-reactions-scroll {
  -ms-overflow-style: none;   /* IE/Edge */
  scrollbar-width: none;      /* Firefox */
}

/* form এর margin 0, বাটন একেকটা আলাদা item */
.feed-footer-actions form {
  margin: 0;
}

.feed-btn {
  background: transparent;
  border: none;
  font-size: 0.8rem;
  color: #6b7280;
  padding: 4px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  flex: 0 0 auto;        /* shrink হবে না */
}

.feed-btn .count {
  /* Display reaction counts in a small pill for better aesthetics */
  font-weight: 600;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 999px;
  color: #1e293b;
  margin-left: 2px;
}

.feed-btn:active {
  background: #e5e7eb;
}

.feed-btn.active {
  color: #2563eb;
}

/* comment বাটন – fixed, ১ লাইনে থাকবে */
.comment-fixed {
  white-space: nowrap;
}

/* comments */
.feed-comments {
  margin-top: 6px;
  border-top: 1px solid #e5e7eb;
  padding-top: 6px;
}

.feed-comment-form {
  margin-bottom: 8px;
}

.feed-comment-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.feed-comment-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.feed-comment-send {
  padding: 4px 10px;
  font-size: 0.8rem;
}

.feed-comment-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feed-comment-item {
  display: flex;
  gap: 6px;
}

.feed-comment-body {
  background: #f3f4ff;
  border-radius: 12px;
  padding: 6px 8px;
  font-size: 0.8rem;
  flex: 1;
}

.feed-comment-header {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.feed-comment-author {
  font-weight: 600;
}

.feed-comment-time {
  color: #9ca3af;
  font-size: 0.7rem;
}

.feed-comment-text {
  color: #111827;
}

.feed-comment-empty {
  font-size: 0.8rem;
  color: #6b7280;
}

/* মোবাইলে Facebook অ্যাপের মতো পুরো স্ক্রিন */
@media (max-width: 640px) {
  .feed-container {
    max-width: 100%;
    margin: 4px 0 72px;
    padding: 0;
  }

  .feed-composer {
    border-radius: 0;
    padding: 10px 12px;
    box-shadow: none;
    border-bottom: 8px solid #f3f4f6;
  }

  .feed-post {
    border-radius: 0;
    box-shadow: none;
    border-bottom: 8px solid #f3f4f6;
  }
}

/* সেফটির জন্য, যদি পুরোনো কোথাও থাকে – একদম লুকিয়ে দিচ্ছি */
.feed-reaction-summary {
  display: none !important;
}

/* ===========================================================
 * Mobile adjustments (custom updates)
 * ===========================================================
 * The following rules improve the mobile experience across
 * all pages. We hide the footer and dashboard slider on small
 * screens, and adjust the bottom navigation icons and labels
 * to a more comfortable medium size.
 */
@media (max-width: 768px) {
  /* Hide the footer on mobile devices */
  .site-footer {
    display: none;
  }
  /* Hide any dashboard sidebar or horizontal menu slider
     that appears below the header on dashboard‑style pages */
  .dash-sidebar {
    display: none !important;
  }
  /* Increase bottom navigation icon size and label font size
     for better readability on small screens */
  .mobile-bottom-nav .mobile-nav-item i {
    font-size: 1.3rem; /* slightly bigger on very small screens */
  }
  .mobile-bottom-nav .mobile-nav-item .label {
    font-size: 0.75rem;
  }
}

/* ------------------------------------------------------------------
 * Global form element styles
 *
 * Many mobile browsers zoom into form fields when the font-size is
 * below 16px. To prevent undesirable zoom behaviour on login,
 * register and other forms we set the default font-size for all
 * textual inputs, selects and textareas to 16px. This rule applies
 * globally across the site and overrides smaller sizes defined
 * elsewhere. Specific pages can override this value if needed.
 */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
  font-size: 16px;
}
