/* =========================================================================
   SubconX Front-end Theme
   Bangladesh's garment subcontractor network platform
   ========================================================================= */

/* ---------- Design Tokens ------------------------------------------------ */
:root {
  /* Brand colors (admin-configurable primary/accent/footer colors are set as
     inline custom properties on :root in master.blade.php — we read them
     here with sane fallbacks so the whole theme stays on-brand). */
  --brand: var(--primary-color, #0f8a4b);
  --brand-dark: #0b6b3a;
  --brand-darker: #08532d;
  --brand-light: #e8f7ef;
  --brand-teal: #12b886;
  --brand-navy: #0e2a3a;
  --brand-navy-2: #123952;
  --accent: var(--accent-color, #ff7a45);
  --accent-dark: #e8632f;

  --ink-900: #10202b;
  --ink-800: #1d2f3a;
  --ink-700: #33474f;
  --ink-500: #5c717b;
  --ink-300: #8b9aa3;

  --surface: #ffffff;
  --surface-alt: #f5f9f8;
  --surface-tint: #eef6f2;
  --border: #e5ebe9;
  --border-strong: #d7e0de;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(16, 32, 43, 0.06);
  --shadow-sm: 0 2px 10px rgba(16, 32, 43, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 32, 43, 0.10);
  --shadow-lg: 0 20px 45px rgba(16, 32, 43, 0.16);

  --container-max: 1240px;

  --bg: var(--surface-alt);
  --tile: var(--surface);
  --muted: var(--ink-500);
  --dark: var(--ink-900);
}

/* ---------- Base ---------------------------------------------------------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  scroll-padding-top: 90px;
  scroll-behavior: smooth;
  background: var(--surface);
  font-family: 'Poppins', 'Noto Sans Bengali', -apple-system, sans-serif;
  color: var(--ink-800);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Clip horizontal spill without creating a scroll container that breaks sticky headers. */
  overflow-x: clip;
}

body { padding-bottom: 44px; /* room for the fixed ticker */ }

img { max-width: 100%; }

a {
  text-decoration: none !important;
  color: var(--brand);
  transition: color .2s ease;
}
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

::selection { background: var(--brand); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

.container { max-width: var(--container-max); }

/* Generic section heading kicker used across pages */
.section-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

/* Buttons -------------------------------------------------------------- */
.btn {
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: .01em;
}

.btn-success {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
  box-shadow: 0 6px 16px rgba(15, 138, 75, .22);
}
.btn-success:hover, .btn-success:focus {
  background-color: var(--brand-dark) !important;
  border-color: var(--brand-dark) !important;
  box-shadow: 0 8px 20px rgba(15, 138, 75, .3);
}

.btn-outline-success {
  color: var(--brand) !important;
  border-color: var(--brand) !important;
}
.btn-outline-success:hover, .btn-outline-success:focus {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}

.btn-premium {
  background: linear-gradient(135deg, #7b2ff7, #d6249f);
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
}

.btn-video {
  background: var(--accent);
  color: white;
  border: none;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 14px rgba(255, 122, 69, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-video:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 10px 18px rgba(255, 122, 69, .35); }

.btn-info {
  background: var(--brand-navy) !important;
  border-color: var(--brand-navy) !important;
  color: #fff !important;
}
.btn-danger { border-radius: var(--radius-pill); }

/* =========================================================================
   Top utility bar
   ========================================================================= */
.top-bar {
  width: 100%;
  background: linear-gradient(90deg, var(--brand-darker), var(--brand-dark));
  font-size: 13.5px;
  color: rgba(255, 255, 255, .92);
  z-index: 10;
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.top-bar a {
  color: rgba(255, 255, 255, .88);
  margin-right: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}

.top-bar a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.top-bar .contact-info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.top-bar div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: flex-start;
}

.top-bar i { margin-right: 2px; }

/* =========================================================================
   Sticky Navbar
   ========================================================================= */
.sticky-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(180%) blur(8px);
  box-shadow: 0 1px 0 var(--border), 0 6px 20px rgba(16, 32, 43, .04);
}

.sticky-navbar .logo { height: 36px; object-fit: contain; }

.navbar-nav .nav-link {
  color: var(--ink-800);
  font-weight: 600;
  margin-right: 6px;
  padding: 8px 14px !important;
  border-radius: var(--radius-pill);
  transition: background .2s ease, color .2s ease;
}
.navbar-nav .nav-link:hover { color: var(--brand); background: var(--brand-light); }

.navbar-toggler {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 6px 10px !important;
}
.navbar-toggler:focus { box-shadow: 0 0 0 .18rem rgba(15, 138, 75, .2); outline: none; }

/* Right-hand navbar action cluster (video / currency / auth buttons) */
.navbar-actions { flex-wrap: wrap; row-gap: 8px; }
.navbar-actions-group { flex-wrap: wrap; row-gap: 8px; }

@media (max-width: 991.98px) {
  .navbar { padding: .5rem 0 !important; }

  .navbar-collapse {
    width: 100%;
    margin-top: .5rem;
    border-top: 1px solid var(--border);
  }
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    display: flex !important;
    flex-direction: column;
  }
  .navbar-collapse.collapsing {
    overflow: hidden;
    transition: height .32s cubic-bezier(.22, .61, .36, 1);
  }
  .navbar-collapse.show {
    max-height: calc(100vh - 140px);
    max-height: calc(100dvh - 140px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  @media (prefers-reduced-motion: reduce) {
    .navbar-collapse.collapsing { transition: none; }
  }

  .navbar-nav { flex-direction: column; width: 100%; }
  .nav-link { padding: .5rem 0 !important; font-size: .95rem; border-bottom: 1px solid var(--border); border-radius: 0 !important; }
  .nav-link:hover { background: transparent; padding-left: 6px !important; }
  .nav-link:last-child { border-bottom: none; }

  .navbar-actions {
    width: 100%;
    margin-top: .5rem;
    padding-top: .5rem;
    border-top: 1px solid var(--border);
  }
  .navbar-actions-group { width: 100%; }
  .navbar-actions-group.ms-auto { margin-left: 0 !important; }

  .navbar-actions .btn { font-size: .9rem; padding: .45rem .9rem; white-space: nowrap; }
}

@media (min-width: 992px) {
  .navbar { padding: .85rem 0 !important; }
  .navbar-collapse { display: flex !important; flex-direction: row; }
  .navbar-nav { flex-direction: row; }
  .navbar-actions, .navbar-actions-group { flex-wrap: nowrap; }
}

/* =========================================================================
   Currency dropdown (component overrides for the inline-styled markup)
   ========================================================================= */
#currencyDropdown {
  border-radius: var(--radius-pill) !important;
}
.dropdown-menu {
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  border: 1px solid var(--border) !important;
}
.dropdown-item.active, .dropdown-item:active {
  background-color: var(--brand) !important;
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer-section {
  background: linear-gradient(180deg, #10222c, #0b1920);
  color: rgba(255, 255, 255, .85);
  padding: 64px 20px 30px;
}

.footer-section h5 {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-section h5::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 3px;
  background: var(--brand);
  border-radius: var(--radius-pill);
}

.footer-section a { color: rgba(255, 255, 255, .68); text-decoration: none; }
.footer-section a:hover { color: #fff; text-decoration: none; padding-left: 3px; }

.footer-section .small-text { font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .68); }

.footer-section ul.list-unstyled li { margin-bottom: 10px; }
.footer-section ul.list-unstyled li a {
  display: inline-flex;
  align-items: center;
  transition: padding-left .2s ease, color .2s ease;
}
.footer-section ul.list-unstyled li a::before {
  content: '›';
  margin-right: 6px;
  color: var(--brand);
  font-weight: 700;
}

.footer-bottom {
  background: var(--brand-darker);
  text-align: center;
  padding: 16px 0;
  color: white;
  width: 100%;
  position: relative;
  z-index: 999;
}
.footer-bottom a { color: inherit; }

.payment-logos {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.payment-logos img {
  display: block;
  height: auto;
  width: 100%;
  min-width: 1100px;
  max-width: none;
  filter: none;
  opacity: 1;
}
.payment-logos img:hover { transform: none; }
.payment-logos:focus-visible { outline: 3px solid var(--brand-teal); outline-offset: 4px; }

.social-icons a, .social-links a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  font-size: 16px;
  margin-right: 8px;
  transition: background .25s ease, transform .25s ease, color .25s ease;
}
.social-icons a:hover, .social-links a:hover {
  background: var(--brand);
  color: #fff;
  transform: translateY(-3px);
}

.social-links { display: flex; flex-wrap: wrap; gap: 4px; }

@media (max-width: 767.98px) {
  .footer-section { padding: 44px 16px 24px; text-align: center; }
  .footer-section h5::after { left: 50%; transform: translateX(-50%); }
  .footer-section .col-md-4 { margin-bottom: 30px; }
  .footer-section ul { padding-left: 0; }
  .social-links, .social-icons { justify-content: center; }
  .footer-bottom .d-flex { flex-direction: column; gap: 10px; text-align: center; }
}

/* App download buttons */
.app-buttons { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.app-buttons img { height: 42px; width: auto; transition: transform .2s ease; cursor: pointer; }
.app-buttons img:hover { transform: scale(1.05); }

/* =========================================================================
   Live News Ticker
   ========================================================================= */
.live-news-ticker {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1040;
  font-size: 14.5px;
  font-family: 'Noto Sans Bengali', 'Poppins', sans-serif;
  border-top: 1px solid rgba(255, 255, 255, .25);
  background: linear-gradient(90deg, var(--brand-darker), var(--brand), var(--brand-teal), var(--brand-navy));
  background-size: 300% 300%;
  animation: gradientShift 14s ease infinite;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, .12);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.live-news-ticker .ticker-title {
  background: rgba(0, 0, 0, .28);
  padding: 9px 16px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-wrapper { overflow: hidden; flex: 1; }
.ticker-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  padding-top: 9px; padding-bottom: 9px;
  animation: tickerMove 26s linear infinite;
}
.live-news-ticker:hover .ticker-content { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .ticker-wrapper { overflow-x: auto; }
  .ticker-content { padding-left: 16px; }
}

@keyframes tickerMove {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 600px) {
  .live-news-ticker { font-size: 12.5px; }
  .live-news-ticker .ticker-title { padding: 7px 10px; }
}

/* =========================================================================
   HOME — Hero
   ========================================================================= */
.hero-section {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-section .overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(18, 184, 134, .35), transparent 45%),
    linear-gradient(180deg, rgba(8, 20, 26, .78) 0%, rgba(8, 20, 26, .74) 55%, rgba(8, 20, 26, .92) 100%);
  z-index: 1;
}

.hero-section .container { position: relative; z-index: 2; padding-top: 30px; padding-bottom: 20px; }

.hero-section h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.18;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .25);
}
.hero-section h1 .text-success,
.hero-section h1 span.text-success { color: #57e39a !important; }

.hero-section h2 {
  color: rgba(255, 255, 255, .92);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.hero-section p.small { color: rgba(255, 255, 255, .72) !important; }

/* Search */
.search-area {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 6px;
  box-shadow: var(--shadow-lg);
}

.search-input {
  flex: 1;
  border-radius: var(--radius-pill) !important;
  border: none !important;
  padding: 12px 22px;
  font-size: 15.5px;
  background: transparent;
  color: var(--ink-800);
}
.search-input:focus { box-shadow: none; outline: none; }

.search-btn {
  border-radius: var(--radius-pill) !important;
  font-weight: 700;
  padding: 12px 26px;
  margin-left: 4px;
  border: none;
  white-space: nowrap;
}

.adv-btn {
  border-radius: var(--radius-pill);
  margin-left: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .55) !important;
  color: #fff !important;
  padding: 10px 20px;
  backdrop-filter: blur(4px);
}
.adv-btn:hover { background: #fff !important; color: var(--brand-dark) !important; }

.advanced-search-filters .card {
  max-width: 760px;
  margin: 14px auto 0;
  background: rgba(255, 255, 255, .97);
  border-radius: var(--radius-lg) !important;
  text-align: left;
  color: var(--ink-800);
}
.advanced-search-filters .form-label { font-weight: 600; font-size: 13.5px; color: var(--ink-700); }
.advanced-search-filters .form-control,
.advanced-search-filters .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border-strong);
}

.search-filters .btn {
  margin: 4px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: white;
  border: none;
}
.search-filters .btn:hover { background: var(--brand-dark); }

/* Stat cards */
.stats { row-gap: 14px; }

.stat-box {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  padding: 22px 10px;
  border-radius: var(--radius-lg);
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  text-align: center;
}

.stat-box:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
}

.stat-box .stat-icon {
  width: 42px; height: 42px;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(87, 227, 154, .18);
  color: #57e39a;
  font-size: 19px;
}

.stat-box p { font-size: 14px; color: #7cffb2; letter-spacing: .02em; }
.stat-box h3 { font-size: 34px; color: #ffffff; margin: 0; font-weight: 800; }

@media (min-width: 768px) and (max-width: 991.98px) {
  .stat-box p { font-size: 12.5px; }
  .stat-box h3 { font-size: 28px; }
}

@media (max-width: 767.98px) {
  .hero-section { min-height: auto; padding: 46px 0 40px; }
  .search-area { flex-wrap: wrap; border-radius: var(--radius-lg); padding: 8px; }
  .search-input { flex: 1 1 100%; text-align: center; }
  .search-btn { flex: 1; margin-left: 0; margin-top: 6px; }
  .adv-btn { flex: 1; margin-left: 6px; margin-top: 6px; }
  .stat-box { padding: 16px 8px; }
  .stat-box h3 { font-size: 26px; }
}

/* =========================================================================
   HOME — Order / Tender tabs & cards
   ========================================================================= */
.orders { background: var(--surface-alt); padding: 70px 0 76px; }

.orders-btns {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  background: #fff;
  padding: 6px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.orders-btns .btn {
  flex: 1 1 auto;
  min-width: 130px;
  padding: 10px 22px;
  font-size: 14.5px;
  border-radius: var(--radius-pill) !important;
}
.orders-btns .btn.btn-outline-success { border-color: transparent !important; color: var(--ink-700) !important; }
.orders-btns .btn.btn-outline-success:hover { background: var(--brand-light) !important; color: var(--brand-dark) !important; }

.tab-content .card { text-align: left; }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
}

.card h6 {
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 8px;
  font-size: 16px;
  padding-right: 66px; /* keep clear of the corner badge */
}

.card p {
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 0;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card:hover h6 { color: var(--brand-dark); }
.card:hover p { color: var(--ink-700); }

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--brand), var(--brand-teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.card:hover::before { transform: scaleX(1); }

/* Corner status badge, generated per tab — no markup changes required */
.card::after {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}
#new-orders .card::after { content: 'New'; background: var(--brand-light); color: var(--brand-dark); }
#ongoing-orders .card::after { content: 'Ongoing'; background: #fff3e0; color: #b3661a; }
#bidding-open .card::after { content: 'Bidding'; background: #fde8ea; color: #c62839; }
#featured-factories .card::after { content: 'Featured'; background: #e7f0ff; color: #2456c9; }

.row.g-4 > [class*='col-'] { display: flex; }
.row.g-4 > [class*='col-'] .card { flex: 1 1 auto; }

@media (max-width: 767px) {
  .card { margin-bottom: 0; padding: 16px !important; border-radius: var(--radius-sm); }
  .card h6 { font-size: 15px; padding-right: 58px; }
  .card p { font-size: 13px; }
  .card::after { top: 10px; right: 10px; font-size: 9.5px; padding: 3px 8px; }
  .orders { padding: 50px 0 56px; }
  .orders-btns { width: 100%; border-radius: var(--radius-md); }
  .orders-btns .btn { min-width: calc(50% - 8px); font-size: 13px; padding: 9px 10px; }
}

/* =========================================================================
   Services page
   ========================================================================= */
.services-section {
  background: url('../img/service-bg.jpg') no-repeat center center/cover;
  color: white;
  position: relative;
}

.services-overlay {
  background: linear-gradient(135deg, rgba(11, 107, 58, .93), rgba(14, 42, 58, .93));
  padding: 80px 20px;
}

.services-content { max-width: 1200px; margin: auto; text-align: center; }

.services-content h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 12px; color: #fff; }
.services-content > p { font-size: 18px; margin-bottom: 48px; color: rgba(255, 255, 255, .85); }

.services-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }

.service-box {
  background: white;
  color: #333;
  flex: 1 1 calc(25% - 24px);
  padding: 30px 22px;
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 240px;
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-box:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.service-icon, .service-box .icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 18px auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-light);
  color: var(--brand-dark);
}
.service-icon.green, .service-box .icon.green { background: var(--brand-light); color: var(--brand-dark); }
.service-icon.dark, .service-box .icon.dark { background: var(--brand-navy); color: #fff; }
.service-icon i, .service-box .icon i { font-size: 30px !important; }

.service-green-text, .green-text { color: var(--brand-dark) !important; font-weight: 700; }
.service-dark-text, .dark-text { color: var(--ink-900) !important; font-weight: 700; }

.service-box h3 { font-size: 20px; margin-bottom: 10px; }
.service-box p { font-size: 14px; color: #666; margin: 0; }

@media (max-width: 991px) {
  .services-container { justify-content: center; }
  .service-box { flex: 1 1 calc(46% - 20px); }
}
@media (max-width: 575px) {
  .service-box { flex: 1 1 100%; }
  .services-overlay { padding: 56px 16px; }
}

/* =========================================================================
   About / Contact — shared "info + profile card" template
   (Single, de-duplicated definition — previously two conflicting rule
   sets caused unreadable white-on-white text on this page.)
   ========================================================================= */
.about-section {
  background: var(--surface-alt);
  padding: 64px 0 76px;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.about-text { flex: 1 1 480px; min-width: 300px; }
.about-text h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 16px; color: var(--ink-900); }

.about-text .intro { font-size: 17px; line-height: 1.7; margin-bottom: 30px; color: var(--ink-500); }

.about-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; }

.point h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--ink-900);
  display: flex; align-items: center; gap: 10px;
}
.point h3 span {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}
.point p { color: var(--ink-500); line-height: 1.6; font-size: 14.5px; margin: 0; }

.about-image { flex: 1 1 400px; min-width: 280px; text-align: center; }
.about-image img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.about-left {
  flex: 1 1 300px;
  min-width: 260px;
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(160deg, var(--brand-navy), var(--brand-navy-2));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-left .profile-img {
  width: 150px; height: 150px;
  max-width: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  border: 4px solid rgba(255, 255, 255, .25);
  box-shadow: var(--shadow-md);
}

.about-left .name { margin: 0 0 4px; font-size: 19px; font-weight: 700; color: #fff; }
.about-left .title { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: #7cffb2; }

.about-right { flex: 2 1 420px; min-width: 300px; padding: 48px; }
.about-right h2 { font-size: 24px; margin-bottom: 14px; color: var(--ink-900); }
.about-right p { line-height: 1.7; font-size: 14.5px; color: var(--ink-500); margin-bottom: 0; }

.form-section {
  background: var(--surface-alt);
  padding: 26px;
  border-radius: var(--radius-md);
  margin-top: 30px;
  border: 1px solid var(--border);
}

.form-section h3 { margin-bottom: 6px; color: var(--ink-900); font-size: 19px; }
.form-section p { margin-bottom: 18px; color: var(--ink-500); font-size: 14px; }

.form-section form { display: grid; gap: 14px; }

.form-section input, .form-section textarea {
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14.5px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}
.form-section input:focus, .form-section textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 138, 75, .14);
}
.form-section textarea { min-height: 120px; resize: vertical; }

.form-section button {
  background: var(--brand);
  color: white;
  border: none;
  padding: 13px 25px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  transition: background .25s ease, transform .2s ease;
  justify-self: start;
  font-size: 15px;
}
.form-section button:hover { background: var(--brand-dark); transform: translateY(-2px); }

@media (max-width: 900px) {
  .about-content, .about-container { flex-direction: column; }
  .about-points { grid-template-columns: 1fr; }
  .about-container { padding: 0; }
  .about-left, .about-right { padding: 32px 24px; }
}

/* =========================================================================
   Pricing
   ========================================================================= */
.pricing-table { padding: 60px 20px 20px; }

.pricing-table h2 {
  text-align: center;
  margin: 0 auto 8px;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--ink-900);
  max-width: 720px;
}

.plan-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 44px;
}

.plan {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 260px;
  padding: 28px 22px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.plan:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.plan.standard { border-color: var(--brand); box-shadow: var(--shadow-md); }
.plan.standard::before {
  content: 'Most Popular';
  position: absolute;
  top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.plan-header {
  font-weight: 700;
  padding: 10px 0 16px;
  color: var(--ink-900);
  border-radius: 5px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--border);
  font-size: 1.05rem;
  letter-spacing: .02em;
}

.basic .plan-header { color: #2596be; }
.standard .plan-header { color: var(--brand-dark); }
.business .plan-header { color: #1f6fb5; }
.premium .plan-header { color: #d9394c; }

.plan-price { font-size: 26px; font-weight: 800; margin-bottom: 18px; color: var(--ink-900); }

.features { list-style: none; padding: 0; margin: 0 0 20px 0; text-align: left; }

.features li {
  margin: 11px 0;
  font-size: 13.5px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-700);
  line-height: 1.4;
}
.features li::before {
  content: '✔';
  font-weight: bold;
  color: var(--brand);
  flex-shrink: 0;
}
.features .inactive::before { content: '✕'; color: #c2c9cc; }
.features .inactive { color: #a7b1b5; }
.features .active { color: var(--ink-700); }

.plan button, .plan .btn { border-radius: var(--radius-pill); font-weight: 700; }

.payments {
  background: #fff;
  padding: 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 60px auto 30px;
  max-width: 1200px;
  border: 1px solid var(--border);
}

.payments h2 { font-size: 20px; margin-bottom: 20px; color: var(--ink-900); text-align: center; }

.payments-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.pay-card {
  background: var(--surface-tint);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pay-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pay-card h3 { margin-top: 0; font-size: 16px; color: var(--brand-dark); margin-bottom: 8px; }
.pay-card p { font-size: 13.5px; color: var(--ink-500); line-height: 1.55; margin: 0; }
.pay-card ul { padding-left: 18px; margin: 8px 0 0; font-size: 13px; color: var(--ink-500); }

.queries {
  margin-top: 22px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-700);
}

@media (max-width: 1199.98px) { .payments-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) {
  .plan { width: 100%; max-width: 320px; }
  .payments-grid { grid-template-columns: 1fr; }
  .pricing-table { padding: 44px 14px 10px; }
}

/* =========================================================================
   Published (Publish Order) page
   ========================================================================= */
.published-tender-section {
  padding: 84px 20px;
  background: linear-gradient(160deg, var(--brand-light), #fff 55%);
}

.published-header { text-align: center; margin-bottom: 54px; max-width: 720px; margin-left: auto; margin-right: auto; }
.published-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--ink-900); font-weight: 800; }
.published-header h2 { font-size: 20px; color: var(--brand-dark); margin-top: 8px; font-weight: 600; }
.published-header p { font-size: 15.5px; color: var(--ink-500); max-width: 600px; margin: 12px auto 0; }

.published-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  max-width: 1200px;
  margin: 0 auto;
}

.published-tile {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.published-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.published-icon {
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--brand-light);
}
.published-icon img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }

.published-tile h3 { font-size: 18px; color: var(--ink-900); margin-bottom: 14px; }

.published-bar {
  background: var(--brand-navy);
  color: #fff;
  padding: 10px 0;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  transition: background .2s ease;
}
.published-tile:hover .published-bar { background: var(--brand); }

@media (max-width: 767px) {
  .published-tender-section { padding: 54px 16px; }
  .published-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .published-tile { padding: 22px 16px; }
  .published-icon { width: 64px; height: 64px; }
  .published-icon img { width: 46px; height: 46px; }
}
@media (max-width: 520px) { .published-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   Request Order
   ========================================================================= */
.tender-request { padding: 70px 20px; background: var(--surface-alt); }

.tender-container {
  display: flex;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 44px;
}

.tender-left { flex: 1 1 380px; min-width: 300px; }
.tender-left h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 8px; color: var(--ink-900); }
.tender-left > p { margin-bottom: 22px; color: var(--ink-500); line-height: 1.6; }
.tender-left h3 { font-size: 18px; margin-bottom: 14px; color: var(--brand-dark); }

.tender-form { display: flex; flex-direction: column; gap: 12px; }
.tender-form label { font-weight: 600; font-size: 13.5px; color: var(--ink-700); margin-bottom: -4px; }

.tender-form input, .tender-form textarea {
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  font-size: 14.5px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.tender-form input:focus, .tender-form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 138, 75, .14);
}
.tender-form textarea { resize: vertical; }

.tender-form button, .tender-form .btn {
  padding: 13px; font-weight: 700; margin-top: 6px; border-radius: var(--radius-pill);
}

.tender-right { flex: 1 1 320px; min-width: 260px; display: flex; justify-content: center; align-items: center; }
.tender-right img { max-width: 100%; height: auto; border-radius: var(--radius-md); }

@media (max-width: 767px) {
  .tender-container { flex-direction: column; padding: 26px; gap: 26px; }
  .tender-right { order: -1; margin-top: 0; }
  .tender-request { padding: 44px 14px; }
}

/* =========================================================================
   Feedback / generic review form
   ========================================================================= */
.review-form {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  max-width: 620px;
  margin: 60px auto;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.review-form h2 { text-align: center; margin-bottom: 22px; color: var(--ink-900); font-size: 22px; }
.review-form form { display: flex; flex-direction: column; gap: 14px; }
.review-form label { font-weight: 600; font-size: 13.5px; color: var(--ink-700); margin-bottom: -6px; }

.review-form input, .review-form select, .review-form textarea {
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  width: 100%;
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.review-form input:focus, .review-form select:focus, .review-form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 138, 75, .14);
}
.review-form textarea { resize: vertical; }

.review-form button {
  background: var(--brand);
  color: #fff;
  padding: 13px;
  font-size: 15.5px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.review-form button:hover { background: var(--brand-dark); transform: translateY(-2px); }

@media (max-width: 600px) {
  .review-form { padding: 26px 20px; margin: 34px auto; }
  .review-form input, .review-form select, .review-form textarea { font-size: 16px; } /* prevent iOS zoom */
}

/* =========================================================================
   Why SubconX — mission / team / timeline / testimonials
   (re-themed to the brand palette instead of unrelated purple/pink)
   ========================================================================= */
.mission-section {
  padding: 84px 20px;
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-dark) 100%);
  color: white;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.mission-card {
  background: rgba(255, 255, 255, .08);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .16);
  transition: transform .3s ease, background .3s ease;
}
.mission-card:hover { transform: translateY(-8px); background: rgba(255, 255, 255, .12); }

.mission-icon {
  font-size: 2.6rem;
  margin-bottom: 16px;
  width: 74px; height: 74px;
  display: flex; align-items: center; justify-content: center;
  margin-left: auto; margin-right: auto;
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
}

.mission-card h3 { font-size: 1.35rem; margin-bottom: 14px; color: white; }
.mission-card p { line-height: 1.65; color: rgba(255, 255, 255, .82); font-size: 14.5px; }

.team-section { padding: 90px 20px; background: var(--surface-alt); }

.section-header { text-align: center; margin-bottom: 54px; }
.section-header h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--ink-900); margin-bottom: 10px; }
.section-header p { font-size: 1.1rem; color: var(--ink-500); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  background: white;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease;
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.team-img {
  width: 116px; height: 116px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  border: 4px solid var(--brand-light);
  background: var(--surface-alt);
}
.team-img img { width: 100%; height: 100%; object-fit: cover; }

.team-card h4 { font-size: 1.2rem; color: var(--ink-900); margin-bottom: 4px; }
.position { color: var(--brand-dark); font-weight: 700; margin-bottom: 12px; font-size: 13.5px; text-transform: uppercase; letter-spacing: .03em; }
.bio { color: var(--ink-500); line-height: 1.6; font-size: 14px; }

/* Timeline — simplified to a single, reliably-responsive left rail
   (the previous alternating layout collapsed unpredictably). */
.timeline-section { padding: 90px 20px; background: white; }

.timeline { max-width: 720px; margin: 0 auto; position: relative; padding-left: 34px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 6px;
  width: 2px; height: calc(100% - 12px);
  background: var(--border-strong);
}

.timeline-item { position: relative; margin-bottom: 34px; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--brand-light);
}

.timeline-year {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
}

.timeline-content {
  background: var(--surface-alt);
  padding: 22px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.timeline-content h4 { color: var(--ink-900); margin-bottom: 8px; font-size: 18px; }
.timeline-content p { color: var(--ink-500); line-height: 1.6; margin: 0; font-size: 14.5px; }

.testimonials-section {
  padding: 90px 20px;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-navy) 100%);
  color: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: rgba(255, 255, 255, .08);
  padding: 38px 30px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .16);
  position: relative;
}

.quote { font-size: 3.4rem; color: rgba(255, 255, 255, .22); position: absolute; top: 6px; left: 20px; font-family: Georgia, serif; }

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.65;
  margin: 22px 0 22px;
  color: rgba(255, 255, 255, .9);
  position: relative;
  z-index: 1;
}

.testimonial-card .user { display: flex; align-items: center; gap: 14px; }
.testimonial-card .user img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-card .user h5 { margin: 0; color: white; font-size: 15px; }
.testimonial-card .user span { color: rgba(255, 255, 255, .68); font-size: .85rem; }

@media (max-width: 768px) {
  .mission-section, .team-section, .timeline-section, .testimonials-section { padding: 60px 16px; }
  .timeline { padding-left: 28px; }
  .timeline-item::before { left: -28px; }
}

/* =========================================================================
   Dashboard shell (kept intact, lightly re-themed)
   ========================================================================= */
.dashboard-body { font-family: 'Poppins', sans-serif; background-color: var(--surface-alt); color: var(--ink-700); display: flex; }
.dashboard-container { display: flex; width: 100%; }

.dashboard-sidebar {
  width: 220px;
  background: linear-gradient(180deg, var(--brand-navy), #0a1c26);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 10px 10px;
  height: 100vh;
  position: fixed;
}

.dashboard-main-content { margin-left: 220px; padding: 25px 30px; display: flex; flex-direction: column; gap: 25px; }
.dashboard-sidebar-settings button { width: 100%; text-align: center; padding: 8px; font-size: 13px; border-radius: var(--radius-sm); }
.dashboard-profile { text-align: center; margin-bottom: 30px; }
.dashboard-profile-img { width: 70px; height: 70px; border-radius: 50%; margin-bottom: 10px; border: 3px solid rgba(255,255,255,.2); }
.dashboard-username { font-size: 18px; font-weight: 600; }
.dashboard-status { font-size: 14px; color: rgba(255,255,255,.6); }
.dashboard-nav ul { list-style: none; padding-top: 20px; margin: 0; }
.dashboard-nav ul li { padding: 12px 10px; cursor: pointer; font-size: 15px; transition: background-color .3s; border-radius: var(--radius-sm); }
.dashboard-nav ul li:hover { background-color: rgba(255,255,255,.08); }

.dashboard-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 25px; background: #fff; border-bottom: 1px solid var(--border); gap: 20px;
}
.dashboard-header-left h2 { font-size: 20px; color: var(--ink-900); }
.dashboard-header-center .search-box { display: flex; align-items: center; gap: 5px; }
.dashboard-header-center .search-box input {
  width: 250px; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); transition: all .3s;
}
.dashboard-header-center .search-box input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,138,75,.12); outline: none; }
.dashboard-header-center .search-btn { padding: 8px 14px; border: none; background: var(--brand); color: white; border-radius: var(--radius-pill); cursor: pointer; }
.dashboard-header-right { display: flex; align-items: center; gap: 20px; }
.dashboard-header-icon { position: relative; font-size: 20px; color: var(--ink-700); cursor: pointer; }
.dashboard-header-icon .badge { position: absolute; top: -5px; right: -10px; background: var(--accent); color: white; font-size: 11px; width: 18px; height: 18px; border-radius: 50%; text-align: center; }
.dashboard-header-profile img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; cursor: pointer; }

.dashboard-cards { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.dashboard-card { flex: 1; min-width: 200px; background: #fff; padding: 22px; border-radius: var(--radius-md); text-align: center; box-shadow: var(--shadow-xs); border: 1px solid var(--border); }
.dashboard-card h3 { font-size: 15px; color: var(--ink-500); margin-bottom: 10px; font-weight: 600; }
.dashboard-card .value { font-size: 24px; font-weight: 800; color: var(--ink-900); }

.dashboard-graph-section { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 25px; }
.dashboard-graph-left { flex: 2; min-width: 340px; }
.dashboard-graph-right { flex: 1; min-width: 200px; }
.dashboard-graph { background: #fff; padding: 18px 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-xs); border: 1px solid var(--border); }
.dashboard-graph h3 { text-align: left; font-size: 16px; color: var(--ink-700); margin-bottom: 10px; }
.dashboard-graph-content { width: 100%; height: 280px; }
.dashboard-graph-content canvas { width: 100% !important; height: 100% !important; }

.dashboard-mini-box { background: var(--surface-alt); padding: 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-xs); text-align: left; }
.dashboard-mini-box h4 { margin-bottom: 15px; color: var(--ink-900); }
.dashboard-mini-box p { font-size: 14px; margin-bottom: 8px; color: var(--ink-700); }

.dashboard-activities { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.dashboard-activity { flex: 1; min-width: 220px; background: #fff; padding: 15px; border-radius: var(--radius-sm); box-shadow: var(--shadow-xs); text-align: center; border: 1px solid var(--border); }
.dashboard-activity img { width: 100%; height: auto; border-radius: var(--radius-xs); margin-bottom: 10px; }
.dashboard-activity .title { font-size: 15px; font-weight: 600; color: var(--ink-900); }

@media (max-width: 991.98px) {
  .dashboard-sidebar { width: 180px; }
  .dashboard-main-content { margin-left: 180px; }
}
@media (max-width: 767.98px) {
  .dashboard-sidebar { width: 150px; }
  .dashboard-main-content { margin-left: 150px; padding: 16px; }
}

/* =========================================================================
   Login page
   ========================================================================= */
.login-container, .login-container * {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
}

body.login-page, .login-page-wrapper {
  background: var(--brand-navy);
  display: flex; justify-content: center; align-items: center;
  min-height: 100vh; position: relative;
}
.login-page-wrapper { flex: 1; }

/* Login page when embedded in the master template — hugs its content
   instead of forcing 80vh (which used to leave a large blank gap above
   the footer on shorter forms). */
.login-page {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 70px 16px;
  overflow: hidden;
}

.login-background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(9, 26, 34, .92), rgba(11, 45, 34, .88));
  z-index: -1;
}

.login-container {
  background: rgba(28, 40, 58, .88);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 46px 50px;
  color: white;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

.login-logo { font-size: 30px; font-weight: 800; color: #57e39a; margin-bottom: 4px; }
.login-subtitle { color: rgba(255, 255, 255, .6); font-size: 13px; margin-bottom: 24px; }
.login-container h2 { margin-bottom: 24px; font-weight: 600; font-size: 22px; color: #fff; }

.login-input-group { text-align: left; margin-bottom: 18px; }
.login-label { display: block; font-size: 13.5px; margin-bottom: 6px; color: rgba(255, 255, 255, .75); }

.login-input {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .12);
  outline: none; background: rgba(255, 255, 255, .08); color: #fff; font-size: 14.5px;
  transition: background .2s ease, border-color .2s ease;
}
.login-input::placeholder { color: rgba(255, 255, 255, .45); }
.login-input:focus { background: rgba(255, 255, 255, .14); border-color: var(--brand-teal); }

.login-btn {
  width: 100%; padding: 12px; background: var(--brand); border: none;
  border-radius: var(--radius-pill); color: #fff; font-weight: 700; cursor: pointer; transition: .25s;
}
.login-btn:hover { background: var(--brand-dark); }

.login-footer { margin-top: 12px; }
.login-footer a {
  display: block; color: #57e39a; font-size: 13.5px; text-decoration: none;
  padding: 10px 16px; border: 1px solid rgba(87, 227, 154, .4); border-radius: var(--radius-pill);
  transition: all .25s ease; font-weight: 600; background: transparent; width: 100%; box-sizing: border-box;
}
.login-footer a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

@media (max-width: 480px) {
  .login-container { padding: 34px 26px; }
}

/* =========================================================================
   Register page
   ========================================================================= */
.register-container, .register-container * {
  margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', 'Noto Sans Bengali', sans-serif;
}

body.register-page { background: var(--brand-navy); color: #fff; }

/* min-height (not a fixed height) so content can never be clipped or
   leave a dead gap depending on viewport size. */
.register-container { display: flex; flex-wrap: wrap; width: 100%; min-height: 100vh; }

.left-panel {
  flex: 1 1 340px;
  background: linear-gradient(160deg, var(--brand), var(--brand-teal));
  display: flex; justify-content: center; align-items: center;
  color: #fff; text-align: center; font-size: 28px; font-weight: 700; line-height: 1.4;
  padding: 60px 30px;
}

.right-panel {
  flex: 1.5 1 460px;
  background: var(--brand-navy);
  padding: 60px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}

.top-text { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 8px; }
.right-panel .logo { font-size: 22px; font-weight: 800; color: #57e39a; }
.signin-text { font-size: 13.5px; color: rgba(255, 255, 255, .65); }
.signin-text a { color: #57e39a; font-weight: 600; }

.right-panel h1 { font-size: 26px; color: #fff; margin-bottom: 22px; }

.register-form { display: flex; flex-direction: column; gap: 14px; }
.input-row { display: flex; gap: 14px; margin-bottom: 0; flex-wrap: wrap; }
.input-row input, .input-row select {
  flex: 1 1 200px; padding: 11px 15px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: rgba(255, 255, 255, .92); font-size: 14.5px; color: #222; transition: box-shadow .2s ease;
}
.input-row input:focus, .input-row select:focus { outline: none; box-shadow: 0 0 0 3px rgba(87, 227, 154, .35); }

.checkbox { margin: 6px 0 6px; font-size: 13px; display: flex; align-items: flex-start; gap: 8px; }
.checkbox label { color: rgba(255, 255, 255, .7); }
.checkbox a { color: #57e39a; }

.create-btn {
  background: var(--brand); color: #fff; padding: 13px 0; border: none; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15.5px; cursor: pointer; transition: background .25s;
}
.create-btn:hover { background: var(--brand-dark); }

.social-buttons { display: flex; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.fb-btn, .tw-btn { flex: 1 1 160px; border: none; padding: 11px; border-radius: var(--radius-pill); cursor: pointer; font-weight: 600; color: #fff; }
.fb-btn { background: #3b5998; }
.tw-btn { background: #1da1f2; }
.fb-btn:hover { background: #334d84; }
.tw-btn:hover { background: #188edb; }

.right-panel .copyright { font-size: 12px; color: rgba(255, 255, 255, .4); text-align: center; margin-top: 32px; }

@media (max-width: 900px) {
  .register-container { flex-direction: column; min-height: auto; }
  .left-panel { padding: 40px 24px; font-size: 22px; }
  .right-panel { padding: 40px 26px; }
  .input-row { flex-direction: column; gap: 12px; }
  .input-row input, .input-row select { flex: 1 1 auto; width: 100%; }
}

/* =========================================================================
   Carousel with previous/next buttons
   ========================================================================= */
.carousel-container { display: flex; align-items: center; gap: 15px; position: relative; }

.carousel-btn {
  flex: 0 0 auto; background: var(--brand); color: white; border: none; border-radius: 50%;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background-color .3s ease, transform .2s ease; font-size: 20px;
}
.carousel-btn:hover { background: var(--brand-dark); transform: scale(1.08); }
.carousel-btn:active { transform: scale(.95); }
.carousel-btn.disabled { background: #ccc; cursor: not-allowed; opacity: .5; }
.carousel-btn.disabled:hover { background: #ccc; transform: none; }

.cards-wrapper { flex: 1; overflow: hidden; }
.cards-wrapper .row { display: flex; flex-wrap: wrap; gap: 1rem; }
.cards-wrapper .col-6, .cards-wrapper .col-md-4 { flex: 0 0 calc(33.333% - .75rem); display: flex; }
.cards-wrapper .card { display: flex; flex-direction: column; height: 100%; }

@media (max-width: 768px) {
  .carousel-container { gap: 10px; }
  .carousel-btn { width: 40px; height: 40px; font-size: 18px; }
  .cards-wrapper .col-6, .cards-wrapper .col-md-4 { flex: 0 0 calc(50% - .5rem); }
}
@media (max-width: 480px) {
  .carousel-container { gap: 8px; }
  .carousel-btn { width: 36px; height: 36px; font-size: 16px; }
}

/* =========================================================================
   Order buttons (generic responsive pill group used in a few places)
   ========================================================================= */
.orders-btns.generic .btn, .tenders-btns .btn {
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-weight: 600;
  transition: all .25s ease;
  box-shadow: var(--shadow-xs);
}
.tenders-btns { display: inline-flex; gap: 8px; }
.tenders-btns .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(15, 138, 75, .18); }

/* =========================================================================
   Small helpers
   ========================================================================= */
.text-purple { color: #8e44ad; }

.breadcrumb-nav { background: var(--surface-alt); padding: 14px 0; border-bottom: 1px solid var(--border); }
.breadcrumb { margin: 0; font-size: 13.5px; }
.breadcrumb-item a { color: var(--ink-500); }
.breadcrumb-item.active { color: var(--brand-dark); font-weight: 600; }

/* Alerts get the same rounded language as the rest of the theme */
.alert { border-radius: var(--radius-md); border: none; box-shadow: var(--shadow-sm); }
.alert-success { background: var(--brand-light); color: var(--brand-darker); }
