/* ==========================================================================
   MRS STUDIO BD - প্রিমিয়াম ডার্ক UI স্টাইলশিট
   ========================================================================== */

/* ১. কালার ভেরিয়েবল ও থিম সেটআপ */
:root {
  --bg-main: #0F111A;           /* মূল ডার্ক ব্যাকগ্রাউন্ড */
  --bg-surface: #161A26;        /* কার্ড ও নেভিগেশন সারফেস */
  --bg-hover: #1D2233;          /* মাউস হোভার করলে সারফেস রঙ */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --accent-green: #00E676;      /* প্রাইমারি নিয়োন গ্রিন অ্যাকসেন্ট */
  --accent-blue: #2979FF;       /* সেকেন্ডারি ইলেকট্রিক ব্লু অ্যাকসেন্ট */
  --text-primary: #F8FAFC;      /* মূল উজ্জ্বল লেখা */
  --text-secondary: #94A3B8;    /* হালকা বিবরণী লেখা */
  --max-width: 1140px;          /* ওয়েবসাইটের সর্বোচ্চ প্রস্থ */
  --radius: 14px;               /* কার্ডের কোণার গোলাকার মাপ */
}

/* ২. বেসিক রিসেট ও ফন্ট সেটআপ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Inter', 'Hind Siliguri', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ৩. টপ নেভিগেশন বার (Header) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 17, 26, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo img {
  height: 44px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-green);
  background: rgba(0, 230, 118, 0.08);
}

.menu-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.35rem;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* ৪. হিরো সেকশন ও সার্চ বক্স */
.hero {
  padding: 72px 0 48px;
  text-align: center;
  background: radial-gradient(circle at top center, rgba(41, 121, 255, 0.12), transparent 60%);
}

.badge-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--accent-green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero p {
  max-width: 680px;
  margin: 0 auto 30px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* সার্চ বক্স ডিজাইন */
.search-wrapper {
  max-width: 600px;
  margin: 0 auto 28px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 15px 20px 15px 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: 0.25s ease;
}

.search-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(41, 121, 255, 0.18);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ৫. বাটন স্টাইল */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-green);
  color: #07120C;
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  background: var(--bg-hover);
}

/* ৬. সেকশন ও কার্ড গ্রিড */
.section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 1.65rem;
  font-weight: 700;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.25s ease;
}

.card:hover {
  background: var(--bg-hover);
  border-color: rgba(0, 230, 118, 0.35);
  transform: translateY(-3px);
}

.card-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  background: rgba(41, 121, 255, 0.14);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: 20px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.policy-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: underline;
}

.policy-link:hover {
  color: var(--accent-green);
}

/* ৭. বইয়ের মতো লেখা ও প্রাইভেসি পলিসি রিডিং লেআউট */
.reading-container {
  max-width: 780px;
  margin: 44px auto;
  padding: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.reading-container h1 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.reading-meta {
  color: var(--accent-green);
  font-size: 0.88rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.reading-container h2 {
  font-size: 1.25rem;
  margin: 26px 0 10px;
  color: #FFFFFF;
}

.reading-container p,
.reading-container li {
  color: #CBD5E1;
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 14px;
}

.reading-container ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

/* সার্চ রেজাল্ট খালি থাকলে মেসেজ */
.no-results {
  display: none;
  text-align: center;
  padding: 28px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-secondary);
  margin-top: 16px;
}

/* ৮. ফুটার (Footer) */
.footer {
  margin-top: 64px;
  border-top: 1px solid var(--border-subtle);
  background: #0B0D14;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 9px;
}

.footer a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer a:hover {
  color: var(--accent-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.86rem;
}

/* ৯. মোবাইল রেসপন্সিভ ডিজাইন */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 18px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 10px;
  }

  .nav-links.open {
    display: flex;
  }

  .reading-container {
    margin: 24px 16px;
    padding: 24px;
  }
}