/* =============================================
   style.css — Velki Agent List
   ============================================= */

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: #f5f5f5; }

/* ===== TOP BAR ===== */
.top-bar {
  background: #1a1a1a;
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 15px;
  font-size: 13px;
}
.top-bar a {
  color: #ccc;
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid #555;
  font-size: 12px;
}
.top-bar a:hover { background: #333; }
.top-bar .customer-service {
  margin-left: auto;
  color: #fff;
  font-weight: bold;
  background: #cc0000;
  border: 1px solid #ff4444 !important;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}
.top-bar .customer-service:hover {
  background: #aa0000;
  color: #fff;
}

/* ===== HEADER ===== */
.header {
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  border-bottom: 3px solid #cc0000;
}
.header-left {
  display: flex;
  align-items: center;
}
.date-box {
  border: 2px solid #ddd;
  padding: 10px 20px;
  text-align: center;
  font-size: 32px;
  font-weight: bold;
  color: #333;
  line-height: 1;
}
.date-box .day { font-size: 13px; color: #666; }

/* ===== NAV ===== */
.nav-menu {
  background: white;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #cc0000;
  padding: 0 20px;
}
.nav-links { display: flex; flex: 1; }
.nav-menu a {
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  border: 1px solid #ddd;
  margin-right: 2px;
}
.nav-menu a.active { background: #1a1a1a; color: white; border-color: #1a1a1a; }
.nav-menu a:hover { background: #f0f0f0; }
.nav-menu a[href="blog.html"] { background: #cc0000; color: white; border-color: #cc0000; }
.nav-menu a[href="blog.html"]:hover { background: #aa0000; }

/* Hamburger (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  margin-right: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #cc0000;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== SEARCH ===== */
.search-section {
  max-width: 900px;
  margin: 20px auto;
  background: white;
  border: 1px solid #ddd;
  padding: 20px;
  text-align: center;
}
.search-section h3 { font-size: 16px; margin-bottom: 15px; color: #333; }
.search-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 300px;
  margin: 0 auto;
}
.search-row label { font-size: 14px; color: #333; }
.search-row select,
.search-row input {
  width: 300px;
  padding: 8px;
  border: 1px solid #aaa;
  font-size: 14px;
}
.search-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 8px 20px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 5px;
  border-radius: 3px;
}
.search-btn:hover { background: #218838; }

/* Search results */
.search-msg {
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
}
.search-success { background: #e6f9ee; color: #1a7a3c; border: 1px solid #a3d9b1; }
.search-error   { background: #fff0f0; color: #cc0000; border: 1px solid #f5b5b5; }
#searchResult .agent-table { max-width: 860px; margin: 0 auto; }

/* ===== CONTENT AREA ===== */
.content { max-width: 900px; margin: 0 auto; padding: 10px 0 40px; }

/* SEO H1 */
.seo-h1 {
  font-size: 18px;
  color: #cc0000;
  text-align: center;
  padding: 10px 15px;
  background: #fff8f8;
  border-bottom: 1px solid #f0d0d0;
  font-weight: bold;
  margin: 0;
}

/* ===== AGENT TABLES ===== */
.group-title {
  text-align: center;
  font-size: 15px;
  color: #333;
  margin: 25px 0 8px;
  font-weight: bold;
}
.agent-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 0.5px solid black;
}
.agent-table th {
  background: white;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: bold;
  color: #333;
  border: 0.5px solid black;
  text-align: center;
}
.agent-table td {
  padding: 7px 12px;
  font-size: 13px;
  font-weight: bold;
  border: 0.5px solid black;
  text-align: center;
  color: #333;
}
/* BUG 4 FIX: thead-এ striping apply হবে না, শুধু tbody-তে */
.agent-table thead tr th { background: white; }
.agent-table tbody tr:nth-child(odd) td  { background: #fff4f4; }
.agent-table tbody tr:nth-child(even) td { background: white; }
.agent-table td.phone { color: #cc0000; cursor: pointer; }
.agent-table td.phone:hover { text-decoration: underline; }
.agent-table td.complain a { color: #cc0000; text-decoration: none; font-size: 13px; }

/* WhatsApp button */
.whatsapp-btn {
  background: #25D366;
  border: none;
  border-radius: 4px;
  width: 32px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.whatsapp-btn svg { width: 18px; height: 18px; fill: white; }

/* ===== BANNER ===== */
.banner {
  max-width: 900px;
  margin: 20px auto;
  border-radius: 4px;
  overflow: hidden;
}

/* ===== RULES BOX ===== */
.footer-info {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 20px;
  border-left: 4px solid #cc0000;
  background: white;
}
.footer-info h3 {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
}
.footer-info p { font-size: 13px; color: #333; line-height: 1.8; }

/* ===== SEO BLOCKS ===== */
.seo-intro-block {
  max-width: 900px;
  margin: 12px auto 0;
  background: #fffaf0;
  border-left: 4px solid #cc0000;
  padding: 15px 20px;
}
.seo-intro-block h2 { font-size: 15px; color: #cc0000; margin-bottom: 8px; }
.seo-intro-block p  { font-size: 13px; color: #444; line-height: 1.8; }
.seo-intro-block a  { color: #cc0000; }

.seo-bottom-block {
  max-width: 900px;
  margin: 20px auto 0;
  background: white;
  border: 1px solid #eee;
  border-top: 3px solid #cc0000;
  padding: 20px 24px;
}
.seo-bottom-block h2 { font-size: 16px; color: #cc0000; margin-bottom: 10px; }
.seo-bottom-block h3 { font-size: 14px; color: #333; margin: 14px 0 6px; }
.seo-bottom-block p  { font-size: 13px; color: #444; line-height: 1.8; margin-bottom: 6px; }
.seo-bottom-block a  { color: #cc0000; text-decoration: underline; }
.seo-blog-cta {
  margin-top: 14px;
  background: #fff0f0;
  border: 1px dashed #cc0000;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
}
.seo-blog-cta a { color: #cc0000; }

/* ===== FAQ ===== */
.faq-section {
  max-width: 900px;
  margin: 30px auto 10px;
  scroll-margin-top: 80px;
}
.faq-heading {
  text-align: center;
  font-size: 17px;
  font-weight: bold;
  color: white;
  background: #cc0000;
  padding: 12px;
  margin-bottom: 0;
  letter-spacing: 1px;
}
.faq-item {
  border: 1px solid #ddd;
  border-top: none;
  background: white;
  overflow: hidden;
}
.faq-question {
  background: #f9f9f9;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: bold;
  color: #1a1a1a;
  cursor: pointer;
  border-left: 4px solid #cc0000;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-question::after {
  content: '▼';
  font-size: 11px;
  color: #cc0000;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 10px;
}
.faq-question.open::after { transform: rotate(180deg); }
.faq-question:hover { background: #fff0f0; }
.faq-answer {
  display: none;
  padding: 13px 18px 13px 22px;
  font-size: 13px;
  color: #444;
  line-height: 1.9;
  border-top: 1px dashed #eee;
  font-weight: bold;
}
.faq-answer.open { display: block; }

/* ===== FOOTER ===== */
.site-footer {
  max-width: 900px;
  margin: 20px auto 30px;
  text-align: center;
  padding: 16px;
  border-top: 1px solid #ddd;
}
.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.footer-links a { color: #cc0000; text-decoration: none; font-size: 13px; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { font-size: 12px; color: #888; }

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet (≤768px) */
@media (max-width: 768px) {
  .top-bar { flex-wrap: wrap; gap: 4px; padding: 6px 10px; }
  .header { padding: 8px 12px; }
  .logo img { height: 56px !important; }
  .date-box { font-size: 22px; padding: 6px 12px; }

  /* Hamburger on mobile */
  .hamburger { display: flex; }
  .nav-menu { padding: 0 10px; flex-wrap: wrap; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid #eee;
  }
  .nav-links.open { display: flex; }
  .nav-menu a {
    padding: 12px 16px;
    font-size: 14px;
    border: none;
    border-bottom: 1px solid #eee;
    margin-right: 0;
    width: 100%;
  }
  .nav-menu a:last-child { border-bottom: none; }

  /* Mobile: flatten dropdown — no popup, show items inline in flow */
  .nav-dropdown {
    display: block;
    width: 100%;
  }
  .nav-dropdown-toggle { display: none; }
  .nav-dropdown-menu {
    display: block !important;
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    border-top: none !important;
    background: transparent !important;
    min-width: unset !important;
    width: 100%;
  }
  .nav-dropdown-menu .dropdown-item {
    display: block;
    padding: 12px 16px 12px 32px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    border-right: none;
    border-left: none;
    border-top: none;
    background: #f5f5f5;
    color: #333;
    width: 100%;
    white-space: normal;
    box-sizing: border-box;
    margin: 0;
  }
  .nav-dropdown-menu .dropdown-item:hover {
    padding-left: 32px;
    background: #cc0000;
    color: #fff;
  }

  .search-section { margin: 12px 8px; padding: 14px 12px; }
  .search-row select,
  .search-row input { width: 100%; }
  .search-row { max-width: 100%; }
  .banner { margin: 12px 8px; }
  .content { padding: 6px 8px 30px; }
  .agent-table th,
  .agent-table td { padding: 6px; font-size: 11px; }
  .seo-intro-block,
  .seo-bottom-block { margin: 10px 8px 0; padding: 12px 14px; }
  .faq-section { margin: 16px 8px 10px; }
  .faq-question { font-size: 13px; padding: 11px 14px; }
  .site-footer { margin: 14px 8px 20px; }
  .footer-links { gap: 12px; }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
  .top-bar { font-size: 11px; padding: 5px 8px; }
  .top-bar a { font-size: 10px; padding: 3px 7px; }
  .header { padding: 6px 10px; }
  .logo img { height: 46px !important; }
  .date-box { font-size: 18px; padding: 5px 10px; }
  .date-box .day { font-size: 11px; }

  /* Table horizontal scroll */
  .content { padding: 4px 4px 20px; overflow-x: auto; }
  .agent-table { min-width: 420px; }
  .group-title { font-size: 13px; margin: 16px 4px 6px; }
  .seo-h1 { font-size: 12px; padding: 6px 10px; }
}

/* ===== DROPDOWN NAV ===== */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}
/* The toggle looks exactly like sibling nav links */
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  border: 1px solid #ddd;
  margin-right: 2px;
  background: white;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.open  .nav-dropdown-toggle {
  background: #cc0000;
  color: #fff;
  border-color: #cc0000;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: 3px solid #cc0000;
  z-index: 1000;
  min-width: 170px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open  .nav-dropdown-menu {
  display: block;
}
.nav-dropdown-menu .dropdown-item {
  display: block;
  padding: 11px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, padding-left 0.1s;
  border-right: none;
  border-left: none;
  border-top: none;
  margin: 0;
}
.nav-dropdown-menu .dropdown-item:last-child { border-bottom: none; }
.nav-dropdown-menu .dropdown-item:hover {
  background: #cc0000;
  color: #fff;
  padding-left: 26px;
}

/* ===== AGENT SECTION HEADERS ===== */
.agent-section {
  margin: 24px 0;
}
.section-header {
  padding: 12px 18px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  border-radius: 4px 4px 0 0;
  letter-spacing: 1px;
}
.admin-header     { background: #7b0000; }
.sub-admin-header { background: #b8001a; }
.super-header     { background: #cc0000; }
.master-header    { background: #cc0000; }

@media (max-width: 600px) {
  .nav-dropdown-menu { min-width: 130px; }
}
