/* ===============================
   RS Network Natore - styles.css
   কাজ: সাইটের সম্পূর্ণ ডিজাইন + News Ticker + Sticky Topbar
   নোট: কমেন্টগুলো ওয়েবসাইটে দেখা যাবে না
================================ */

/* ---------- Root Variables (রঙ/শেডো/রেডিয়াস) ---------- */
:root {
  --primary: #0056b3;
  --primary-dark: #004494;
  --accent: #ff9900;
  --text-main: #333;
  --text-light: #666;
  --bg-light: #f4f6f9;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-hover: 0 10px 15px rgba(0,0,0,0.15);
  --radius: 8px;

  /* কাজ: News bar এর উচ্চতা */
  --newsbar-h: 34px;
}

/* ---------- Base Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background: var(--white);
}
a {
  text-decoration: none; /* কাজ: লিংকের আন্ডারলাইন বন্ধ */
  color: inherit;
  transition: 0.3s;
}

/* =========================
   NEWS TICKER (Top Bar)
   কাজ: এক লাইনে স্ক্রলিং নিউজ দেখাবে (Full width)
========================= */
.news-ticker{
  background:#0b2fb3;
  color:#fff;
  font-size:14px;
  position: sticky; /* স্ক্রল করলে উপরে আটকে থাকবে */
  top: 0;
  z-index: 1200;    /* topbar এর উপরে থাকবে */
}

.ticker-inner{
  height: var(--newsbar-h);
  display:flex;
  align-items:center;
  gap:12px;
  padding: 0 20px;   /* ফুল-উইডথ প্যাডিং */
  overflow:hidden;   /* বাইরে গেলে লুকাবে */
}

.news-badge{
  background:#ff2b2b;
  color:#fff;
  font-weight:800;
  font-size:12px;
  padding:6px 10px;
  border-radius:6px;
  letter-spacing:.3px;
  display:inline-flex;
  align-items:center;
  white-space:nowrap; /* ব্যাজ এক লাইনে */
  flex:0 0 auto;
}

.ticker-track{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
}

.ticker-content{
  display:inline-flex;
  align-items:center;
  gap:16px;
  white-space:nowrap; /* সবচেয়ে জরুরি: wrap বন্ধ */
  will-change:transform;
  animation:tickerMove 30s linear infinite;
}

.ticker-item{ white-space:nowrap; opacity:.95; }
.ticker-sep{ white-space:nowrap; opacity:.6; font-weight:700; }

/* কাজ: index.html এ কন্টেন্ট একই লাইনে duplicate করা আছে, তাই -50% এ perfect loop */
@keyframes tickerMove{
  0%   { transform:translateX(0); }
  100% { transform:translateX(-50%); }
}

@media (prefers-reduced-motion: reduce){
  .ticker-content{ animation:none; }
}

/* ---------- Layout Container ---------- */
.container {
  max-width: 1100px;  /* কাজ: সাইট কনটেন্টকে মাঝখানে সীমিত রাখে */
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   HEADER & NAV (Topbar)
   কাজ: টিকারের নিচে sticky থাকবে
========================= */
.topbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: var(--newsbar-h); /* কাজ: টিকারের উচ্চতা অনুযায়ী নিচে বসবে */
  z-index: 1100;
  padding: 0 20px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.brand { display: flex; align-items: center; }
.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.nav a {
  margin-left: 20px;
  font-weight: 500;
  color: var(--text-main);
}
.nav a:hover { color: var(--primary); }

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(0,86,179,0.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.btn-ghost {
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-ghost:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-outline {
  border: 2px solid #ddd;
  color: var(--text-light);
  width: 100%;
  text-align: center;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* =========================
   HERO SECTION
========================= */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: left;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero .lead {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-card {
  background: var(--white);
  color: var(--text-main);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}
.hero-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}
.hero-card-sub { color: var(--text-light); margin-bottom: 12px; }
.hero-actions { margin-bottom: 30px; display: flex; gap: 15px; }

.badges { display: flex; gap: 20px; margin-top: 30px; }
.badge {
  background: rgba(255,255,255,0.1);
  padding: 15px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.2);
}
.badge-title { font-weight: 700; font-size: 0.9rem; }
.badge-sub { font-size: 0.8rem; opacity: 0.85; }

/* =========================
   SECTIONS
========================= */
.section { padding: 60px 0; }
.section.alt { background: var(--bg-light); }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 { font-size: 2rem; color: var(--text-main); margin-bottom: 10px; }
.section-head p { color: var(--text-light); }

/* =========================
   GRID & CARDS
========================= */
.grid { display: grid; gap: 20px; }
.grid.cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid #eee;
  border-top: 4px solid transparent;
  transition: 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  border-top: 4px solid var(--primary);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.card.featured {
  border-top: 4px solid var(--accent);
  box-shadow: 0 10px 25px rgba(255,153,0,0.15);
  transform: translateY(-5px);
  z-index: 2;
}
.card.featured:hover { transform: translateY(-10px); }

.tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
}
.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary);
  text-align: center;
}
.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
}
.price span { font-size: 1rem; font-weight: 400; color: var(--text-light); }

.list { list-style: none; margin-bottom: 25px; flex-grow: 1; }
.list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  color: var(--text-light);
  font-size: 0.95rem;
}
.list li:before {
  content: "✔";
  color: var(--accent);
  margin-right: 10px;
  font-weight: bold;
}

/* =========================
   FORMS
========================= */
.form label { display: block; margin-bottom: 15px; font-weight: 600; font-size: 0.9rem; }
.form input, .form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: 0.3s;
  margin-top: 5px;
}
.form input:focus, .form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,86,179,0.1);
}
.form.wide { max-width: 700px; margin: 0 auto; }
.hint { font-size: 0.85rem; color: #999; margin-top: 5px; }

/* =========================
   PANELS
========================= */
.panel {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  height: 100%;
}
.panel h3 { margin-bottom: 15px; color: var(--primary); }

/* =========================
   TEAM SECTION
========================= */
.team-card {
  text-align: center;
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 100%;
  transition: 0.3s;
}
.team-card:hover { transform: translateY(-5px); }
.team-card img {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--accent);
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 5px; color: var(--text-main); }
.team-card p { color: var(--text-light); font-size: 0.9rem; font-weight: 500; }

/* =========================
   MAP
========================= */
.map-container iframe {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 0;
}

/* =========================
   FOOTER
========================= */
.footer { background: #1a1a1a; color: #ccc; padding: 40px 0; font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; text-align: left; }
.footer-right { text-align: right; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { margin: 0 10px; color: #ccc; transition: 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-logo img { width: 50px; height: 50px; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  :root { --newsbar-h: 32px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero { text-align: center; padding: 40px 0; }
  .hero-actions { justify-content: center; flex-direction: column; }
  .badges { flex-direction: column; }

  .nav { display: none; }
  .topbar-inner { flex-direction: column; height: auto; padding: 10px 0; }
  .brand { margin-bottom: 15px; }

  .grid.two, .grid.three { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; gap: 20px; }
  .footer-right { text-align: center; }
}