/* ============================================
   MANAGE DESK — Global Styles v4.0
   Professional White + Blue — Razorpay-inspired
   ============================================ */

:root {
  --md-blue: #2563eb;
  --md-blue-dark: #1e40af;
  --md-blue-darker: #1e3a8a;
  --md-blue-light: #3b82f6;
  --md-navy: #0f172a;
  --md-text: #1e293b;
  --md-text-secondary: #475569;
  --md-text-muted: #64748b;
  --md-text-faint: #94a3b8;
  --md-bg: #ffffff;
  --md-bg-alt: #f8fafc;
  --md-border: #e2e8f0;
  --md-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --md-radius: 8px;
  --md-radius-lg: 16px;
  --md-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --md-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --md-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --md-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --md-container: 1200px;

  /* Legacy variable compat */
  --md-accent: #2563eb;
  --md-accent-light: #3b82f6;
  --md-accent-dark: #1d4ed8;
  --md-section-pad: 96px 0;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; overflow-x:hidden; }
body {
  font-family: var(--md-font);
  background: var(--md-bg);
  color: var(--md-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe, table { max-width:100%; }
a { color: var(--md-blue); text-decoration:none; transition:color .2s; }
a:hover { color: var(--md-blue-dark); }
::selection { background:rgba(37,99,235,.15); color:var(--md-text); }

/* ---------- Layout ---------- */
.container { max-width:var(--md-container); margin:0 auto; padding:0 24px; }
.section { padding:var(--md-section-pad); }
.section-dark { background:var(--md-bg-alt); }
.text-center { text-align:center; }

.section-label {
  display:inline-block; font-size:.7rem; font-weight:600; letter-spacing:2px;
  text-transform:uppercase; color:var(--md-blue); margin-bottom:16px;
  background:rgba(37,99,235,.06); padding:6px 14px; border-radius:100px;
}

.section-title {
  font-size:2.2rem; font-weight:700; color:var(--md-navy); line-height:1.25;
  margin-bottom:16px; letter-spacing:-.02em;
}

.section-subtitle {
  font-size:1.05rem; color:var(--md-text-muted); max-width:540px;
  margin:0 auto 48px; line-height:1.75;
}

.section-divider {
  width:48px; height:3px; background:var(--md-blue); border-radius:2px;
  margin:0 auto 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 24px; border-radius:var(--md-radius); font-family:var(--md-font);
  font-size:.88rem; font-weight:600; cursor:pointer; border:none;
  transition:all .2s var(--md-ease); text-decoration:none; white-space:nowrap;
}

.btn-primary {
  background:var(--md-blue); color:#fff;
  box-shadow:0 1px 3px rgba(37,99,235,.3);
}
.btn-primary:hover {
  background:var(--md-blue-dark); color:#fff;
  transform:translateY(-1px); box-shadow:0 4px 14px rgba(37,99,235,.35);
}

.btn-outline {
  background:transparent; color:var(--md-text);
  border:1.5px solid var(--md-border);
}
.btn-outline:hover {
  border-color:var(--md-blue); color:var(--md-blue); background:rgba(37,99,235,.03);
}

.btn-sm { padding:8px 18px; font-size:.82rem; }
.btn-lg { padding:14px 32px; font-size:.95rem; }

/* ---------- Navbar — Floating Blue Glass Pill ---------- */
.navbar {
  position:fixed; top:16px; left:50%; transform:translateX(-50%);
  z-index:1000; width:calc(100% - 48px); max-width:1200px;
  background:rgba(15,23,42,.75);
  backdrop-filter:blur(16px) saturate(1.6);
  -webkit-backdrop-filter:blur(16px) saturate(1.6);
  border:1px solid rgba(255,255,255,.08);
  border-radius:60px;
  box-shadow:0 4px 24px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.06);
  transition:all .35s var(--md-ease);
}

.navbar.scrolled {
  top:10px; width:calc(100% - 32px);
  background:rgba(15,23,42,.88);
  backdrop-filter:blur(24px) saturate(1.8);
  -webkit-backdrop-filter:blur(24px) saturate(1.8);
  box-shadow:0 8px 40px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.08);
  border-color:rgba(255,255,255,.1);
}

.navbar .container {
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 28px;
}

.navbar-brand {
  display:flex; align-items:center; gap:10px; text-decoration:none;
}
.navbar-brand:hover { opacity:.9; }
.navbar-brand .brand-logo {
  height:36px; width:auto; display:block; max-width:160px; object-fit:contain;
}
.navbar-brand .brand-icon {
  width:32px; height:32px; background:rgba(255,255,255,.15); border-radius:8px;
  display:flex; align-items:center; justify-content:center; font-size:.9rem; color:#fff;
}
.navbar-brand .brand-text,
.footer-brand .brand-text { display:none !important; }
.navbar-brand span { color:#fff; font-weight:700; font-size:1.15rem; }

.nav-links {
  display:flex; list-style:none; gap:4px; align-items:center;
}
body > .nav-links.mobile-menu { display:none; }

.nav-links a {
  color:rgba(255,255,255,.7); font-size:.85rem; font-weight:500;
  padding:8px 14px; border-radius:40px; transition:all .2s;
}
.nav-links a:hover { color:#fff; background:rgba(255,255,255,.1); }
.nav-links a.active { color:#fff; font-weight:600; background:rgba(255,255,255,.1); }
.nav-links a::after { display:none; }

.nav-cta {
  margin-left:8px; padding:9px 22px !important; font-size:.84rem !important;
  border-radius:40px !important; background:#fff !important;
  color:var(--md-navy) !important; font-weight:700 !important;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
  transition:all .2s var(--md-ease) !important;
}
.nav-cta:hover { background:#f1f5f9 !important; transform:translateY(-1px); box-shadow:0 4px 16px rgba(0,0,0,.2) !important; }
.nav-cta::after { display:none !important; }
.nav-links a.nav-cta { color:var(--md-navy) !important; }
.nav-links a.nav-cta:hover { background:#f1f5f9 !important; color:var(--md-navy) !important; }

.menu-toggle {
  display:none; flex-direction:column; gap:5px; cursor:pointer;
  background:none; border:none; padding:4px;
}
.menu-toggle span {
  width:20px; height:2px; background:#fff;
  transition:all .3s; border-radius:2px;
}

/* ---------- SVG Icons ---------- */
.icon {
  width:22px; height:22px; display:inline-block; vertical-align:middle;
  stroke-width:1.75; stroke:currentColor; fill:none;
  stroke-linecap:round; stroke-linejoin:round; flex-shrink:0;
}
.icon-lg { width:28px; height:28px; }
.icon-sm { width:16px; height:16px; }
.feature-icon-box {
  width:48px; height:48px; border-radius:10px;
  background:rgba(37,99,235,.08); display:flex; align-items:center;
  justify-content:center; color:var(--md-blue); margin-bottom:16px;
}
.feature-icon-box .icon { width:24px; height:24px; }

/* ---------- Hero ---------- */
.hero {
  min-height:92vh; display:flex; align-items:center;
  background:var(--md-navy); position:relative; overflow:hidden;
  padding-top:100px; padding-bottom:60px;
}

.hero::before {
  content:''; position:absolute; top:-20%; right:-15%;
  width:800px; height:800px;
  background:radial-gradient(circle, rgba(37,99,235,.2) 0%, transparent 60%);
  pointer-events:none;
}
.hero::after {
  content:''; position:absolute; bottom:-20%; left:-10%;
  width:600px; height:600px;
  background:radial-gradient(circle, rgba(59,130,246,.08) 0%, transparent 55%);
  pointer-events:none;
}

.hero-content {
  position:relative; z-index:2; max-width:720px; margin:0 auto; text-align:center;
}

.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 14px; background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12); border-radius:100px;
  font-size:.75rem; font-weight:600; color:rgba(255,255,255,.7);
  margin-bottom:24px;
}
.hero-badge::before {
  content:''; width:6px; height:6px; background:var(--md-blue-light);
  border-radius:50%; animation:pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }

.hero h1 {
  font-size:3.2rem; font-weight:800; color:#fff; line-height:1.1;
  margin-bottom:20px; letter-spacing:-.03em;
}
.hero h1 .highlight {
  color:var(--md-blue-light);
}

.hero p {
  font-size:1.1rem; color:rgba(255,255,255,.65); line-height:1.75;
  margin:0 auto 32px; max-width:560px;
}

.hero .hero-badge { margin-left:auto; margin-right:auto; }
.hero .hero-buttons { justify-content:center; }
.hero .hero-stats { justify-content:center; }

.hero-buttons { display:flex; gap:12px; flex-wrap:wrap; }
.hero .btn-primary {
  background:#fff; color:var(--md-navy); border:none;
  box-shadow:0 2px 8px rgba(0,0,0,.15); font-weight:700;
}
.hero .btn-primary:hover {
  background:#f1f5f9; color:var(--md-navy);
  box-shadow:0 4px 16px rgba(0,0,0,.2);
}
.hero .btn-outline {
  background:transparent; color:rgba(255,255,255,.9);
  border:1.5px solid rgba(255,255,255,.25);
}
.hero .btn-outline:hover {
  background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.5);
  color:#fff;
}

.hero-stats {
  display:flex; gap:48px; margin-top:48px; padding-top:32px;
  border-top:1px solid rgba(255,255,255,.1);
}
.hero-stat h3 { font-size:1.8rem; color:#fff; font-weight:800; letter-spacing:-.02em; }
.hero-stat p { font-size:.8rem; color:rgba(255,255,255,.45); margin-bottom:0; font-weight:500; }

/* ---------- Cards ---------- */
.card {
  background:#fff; border:1px solid var(--md-border); border-radius:var(--md-radius-lg);
  padding:28px; transition:all .25s var(--md-ease); box-shadow:var(--md-shadow-sm);
}
.card:hover {
  box-shadow:var(--md-shadow-md); transform:translateY(-2px);
  border-color:rgba(37,99,235,.15);
}
.card-icon {
  width:44px; height:44px; background:rgba(37,99,235,.07); border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  color:var(--md-blue); margin-bottom:16px;
}
.card-icon svg { width:22px; height:22px; stroke:var(--md-blue); fill:none; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
.card h3 { font-size:1rem; font-weight:700; color:var(--md-navy); margin-bottom:8px; }
.card p { font-size:.9rem; color:var(--md-text-muted); line-height:1.65; }

/* ---------- Features Grid ---------- */
.features-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.features-grid.features-grid-3 { grid-template-columns:repeat(3,1fr); }

/* ---------- Testimonials ---------- */
.testimonials-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.testimonial-card {
  background:#fff; border:1px solid var(--md-border); border-radius:var(--md-radius-lg);
  padding:28px; box-shadow:var(--md-shadow-sm);
}
.testimonial-card .quote { font-size:1.6rem; color:var(--md-blue); opacity:.4; margin-bottom:12px; }
.testimonial-card p { font-size:.9rem; color:var(--md-text-secondary); line-height:1.7; margin-bottom:20px; font-style:italic; }
.testimonial-author { display:flex; align-items:center; gap:12px; }
.testimonial-avatar {
  width:40px; height:40px; border-radius:50%; background:rgba(37,99,235,.06);
  display:flex; align-items:center; justify-content:center; font-weight:700;
  font-size:.75rem; color:var(--md-blue); overflow:hidden; border:2px solid var(--md-border); flex-shrink:0;
}
.testimonial-avatar img { width:100%; height:100%; object-fit:cover; }
.testimonial-info h4 { font-size:.85rem; color:var(--md-navy); font-weight:600; }
.testimonial-info span { font-size:.75rem; color:var(--md-text-faint); }

/* ---------- CTA Section ---------- */
.cta-section {
  background:var(--md-navy); position:relative; overflow:hidden;
}
.cta-section::before {
  content:''; position:absolute; top:0; left:0; right:0; bottom:0;
  background:radial-gradient(ellipse at center, rgba(37,99,235,.12) 0%, transparent 60%);
  pointer-events:none;
}
.cta-content { position:relative; z-index:2; text-align:center; }
.cta-content h2 {
  font-size:2rem; font-weight:700; color:#fff; margin-bottom:12px; letter-spacing:-.02em;
}
.cta-content p {
  font-size:1rem; color:rgba(255,255,255,.6); margin-bottom:28px;
  max-width:460px; margin-left:auto; margin-right:auto;
}
.cta-section .btn-primary {
  background:#fff; color:var(--md-navy); font-weight:700;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
}
.cta-section .btn-primary:hover {
  background:#f1f5f9; box-shadow:0 4px 16px rgba(0,0,0,.2);
}
.cta-section .btn-outline {
  color:rgba(255,255,255,.9); border:1.5px solid rgba(255,255,255,.25);
  background:transparent;
}
.cta-section .btn-outline:hover {
  background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.5); color:#fff;
}

/* ---------- Footer ---------- */
.footer {
  background:var(--md-navy); padding:72px 0 28px;
}
.footer-grid {
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:48px; margin-bottom:48px;
}
.footer-brand .navbar-brand { margin-bottom:16px; }
.footer-brand .brand-logo {
  height:56px; width:auto; display:block; max-width:220px; object-fit:contain;
  margin-bottom:12px;
}
.footer-brand p { font-size:.88rem; color:rgba(255,255,255,.45); line-height:1.7; max-width:320px; }
.footer-brand-meta {
  margin-top:18px; display:flex; flex-direction:column; gap:5px;
  font-size:.8rem; color:rgba(255,255,255,.4);
}
.footer-brand-meta a { color:rgba(255,255,255,.5); transition:color .2s; }
.footer-brand-meta a:hover { color:var(--md-blue-light); }

.footer-col h4 {
  font-size:.7rem; font-weight:700; letter-spacing:1.5px; text-transform:uppercase;
  color:rgba(255,255,255,.7); margin-bottom:18px;
}
.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom:10px; }
.footer-col ul li a {
  font-size:.88rem; color:rgba(255,255,255,.45); transition:color .2s;
}
.footer-col ul li a:hover { color:#fff; }

.footer-bottom {
  border-top:1px solid rgba(255,255,255,.06); padding-top:24px;
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:16px;
}
.footer-bottom p { font-size:.78rem; color:rgba(255,255,255,.3); }
.footer-bottom-links { display:flex; gap:20px; font-size:.78rem; }
.footer-bottom-links a { color:rgba(255,255,255,.35); transition:color .2s; }
.footer-bottom-links a:hover { color:rgba(255,255,255,.7); }

.footer-social { display:flex; gap:8px; }
.footer-social a {
  width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08); display:flex; align-items:center;
  justify-content:center; color:rgba(255,255,255,.4); transition:all .2s;
}
.footer-social a:hover {
  background:var(--md-blue); border-color:var(--md-blue); color:#fff;
  transform:translateY(-1px);
}

/* ---------- Page Header ---------- */
.page-header {
  padding:140px 0 64px; background:var(--md-navy); text-align:center;
  position:relative; overflow:hidden;
}
.page-header::before {
  content:''; position:absolute; top:-40%; right:-20%; width:600px; height:600px;
  background:radial-gradient(circle, rgba(37,99,235,.12) 0%, transparent 60%);
  pointer-events:none;
}
.page-header .section-label {
  color:rgba(255,255,255,.7); background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.12);
}
.page-header h1 {
  font-size:2.4rem; font-weight:700; color:#fff; margin-bottom:12px;
  position:relative; letter-spacing:-.02em;
}
.page-header p {
  font-size:1rem; color:rgba(255,255,255,.6); max-width:500px;
  margin:0 auto; position:relative;
}

/* ---------- Pricing ---------- */
.pricing-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; align-items:start; }
.pricing-card {
  background:#fff; border:1px solid var(--md-border); border-radius:var(--md-radius-lg);
  padding:36px 28px; position:relative; transition:all .25s; box-shadow:var(--md-shadow-sm);
}
.pricing-card:hover { transform:translateY(-3px); box-shadow:var(--md-shadow-lg); }
.pricing-card.featured { border-color:var(--md-blue); box-shadow:0 4px 20px rgba(37,99,235,.1); }
.pricing-card.featured::before {
  content:'30-Day Free Trial'; position:absolute; top:-1px; left:50%;
  transform:translateX(-50%); padding:4px 16px; background:var(--md-blue);
  color:#fff; font-size:.65rem; font-weight:700; border-radius:0 0 8px 8px;
  letter-spacing:.5px; text-transform:uppercase;
}
.pricing-card .plan-name { font-size:.72rem; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--md-blue); margin-bottom:6px; }
.pricing-card .plan-price { font-size:2.6rem; font-weight:800; color:var(--md-navy); margin-bottom:4px; letter-spacing:-.03em; }
.pricing-card .plan-price span { font-size:.9rem; font-weight:400; color:var(--md-text-faint); }
.pricing-card .plan-desc { font-size:.85rem; color:var(--md-text-faint); margin-bottom:24px; padding-bottom:24px; border-bottom:1px solid var(--md-border); }
.pricing-features { list-style:none; margin-bottom:28px; }
.pricing-features li { display:flex; align-items:center; gap:10px; font-size:.85rem; color:var(--md-text-secondary); margin-bottom:11px; }
.pricing-features li .check { color:var(--md-blue); font-weight:700; }
.pricing-features li.disabled { opacity:.3; }

/* ---------- Blog ---------- */
.blog-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.blog-card {
  background:#fff; border:1px solid var(--md-border); border-radius:var(--md-radius-lg);
  overflow:hidden; transition:all .25s; box-shadow:var(--md-shadow-sm);
}
.blog-card:hover { transform:translateY(-2px); box-shadow:var(--md-shadow-md); }
.blog-card-image {
  width:100%; height:200px; background:var(--md-bg-alt); display:flex;
  align-items:center; justify-content:center; font-size:2.5rem; opacity:.5;
  position:relative; overflow:hidden;
}
.blog-card-image::after {
  content:''; position:absolute; bottom:0; left:0; right:0; height:40px;
  background:linear-gradient(transparent, rgba(255,255,255,.8));
}
.blog-card-body { padding:20px; }
.blog-card-meta { display:flex; align-items:center; gap:10px; font-size:.74rem; color:var(--md-text-faint); margin-bottom:10px; }
.blog-card-meta .tag { padding:2px 8px; background:rgba(37,99,235,.06); border-radius:4px; color:var(--md-blue); font-weight:600; font-size:.68rem; text-transform:uppercase; letter-spacing:.5px; }
.blog-card h3 { font-size:1rem; color:var(--md-navy); font-weight:700; margin-bottom:6px; line-height:1.4; }
.blog-card p { font-size:.85rem; color:var(--md-text-muted); line-height:1.65; margin-bottom:14px; }
.blog-card .read-more { font-size:.8rem; font-weight:600; color:var(--md-blue); display:inline-flex; align-items:center; gap:4px; transition:gap .2s; }
.blog-card .read-more:hover { gap:8px; }

/* ---------- Blog Post ---------- */
.blog-post-content { max-width:720px; margin:0 auto; padding:48px 24px; }
.blog-post-content h2 { font-size:1.5rem; font-weight:700; color:var(--md-navy); margin:32px 0 12px; }
.blog-post-content h3 { font-size:1.2rem; font-weight:700; color:var(--md-navy); margin:24px 0 8px; }
.blog-post-content p { font-size:1rem; line-height:1.85; color:var(--md-text-secondary); margin-bottom:16px; }
.blog-post-content blockquote {
  border-left:3px solid var(--md-blue); padding:14px 20px; margin:20px 0;
  background:rgba(37,99,235,.03); border-radius:0 var(--md-radius) var(--md-radius) 0;
  font-style:italic; color:var(--md-text-secondary);
}

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.contact-form { display:flex; flex-direction:column; gap:16px; }
.form-group { display:flex; flex-direction:column; gap:5px; }
.form-group label { font-size:.8rem; font-weight:600; color:var(--md-text-secondary); }
.form-group input,
.form-group textarea,
.form-group select {
  padding:12px 14px; background:#fff; border:1px solid var(--md-border);
  border-radius:var(--md-radius); color:var(--md-text); font-family:var(--md-font);
  font-size:.9rem; transition:border .2s; outline:none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color:var(--md-blue); box-shadow:0 0 0 3px rgba(37,99,235,.08); }
.form-group textarea { resize:vertical; min-height:120px; }

.contact-info-card {
  background:#fff; border:1px solid var(--md-border); border-radius:var(--md-radius-lg);
  padding:28px; box-shadow:var(--md-shadow-sm);
}
.contact-info-item { display:flex; gap:14px; margin-bottom:20px; align-items:flex-start; }
.contact-info-item:last-child { margin-bottom:0; }
.contact-icon {
  width:40px; height:40px; background:rgba(37,99,235,.06); border-radius:var(--md-radius);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--md-blue);
}
.contact-info-item h4 { font-size:.88rem; color:var(--md-navy); margin-bottom:2px; font-weight:600; }
.contact-info-item p { font-size:.85rem; color:var(--md-text-muted); }

/* ---------- Directory ---------- */
.directory-filters { display:flex; gap:12px; margin-bottom:32px; flex-wrap:wrap; }
.filter-input {
  flex:1; min-width:240px; padding:12px 14px; background:#fff;
  border:1px solid var(--md-border); border-radius:var(--md-radius);
  color:var(--md-text); font-family:var(--md-font); font-size:.9rem; outline:none;
}
.filter-input:focus { border-color:var(--md-blue); }
.filter-select {
  padding:12px 14px; background:#fff; border:1px solid var(--md-border);
  border-radius:var(--md-radius); color:var(--md-text); font-family:var(--md-font);
  font-size:.9rem; outline:none; cursor:pointer; min-width:160px;
}
.directory-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.library-card {
  background:#fff; border:1px solid var(--md-border); border-radius:var(--md-radius-lg);
  padding:24px; transition:all .25s; box-shadow:var(--md-shadow-sm);
}
.library-card:hover { transform:translateY(-2px); box-shadow:var(--md-shadow-md); }
.library-card-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:12px; }
.library-card h3 { font-size:1rem; color:var(--md-navy); font-weight:700; }
.library-card .distance { font-size:.72rem; font-weight:600; color:var(--md-blue); background:rgba(37,99,235,.06); padding:3px 10px; border-radius:20px; white-space:nowrap; }
.library-card .address { font-size:.85rem; color:var(--md-text-muted); margin-bottom:12px; }
.library-facilities { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:16px; }
.facility-tag { padding:3px 8px; background:var(--md-bg-alt); border-radius:4px; font-size:.72rem; color:var(--md-text-muted); border:1px solid var(--md-border); font-weight:500; }
.library-card-footer { display:flex; justify-content:space-between; align-items:center; padding-top:12px; border-top:1px solid var(--md-border); }
.library-rating { display:flex; align-items:center; gap:5px; font-size:.8rem; color:var(--md-blue); }

/* ---------- Directory Feature (homepage) ---------- */
.directory-feature {
  background:var(--md-bg-alt); border:1px solid var(--md-border);
  border-radius:var(--md-radius-lg); padding:48px 40px;
  display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center;
}

/* ---------- Responsive: Tablet ---------- */
@media (max-width:1024px) {
  :root { --md-section-pad:72px 0; }
  .container { padding:0 20px; }
  .features-grid, .features-grid.features-grid-3,
  .testimonials-grid, .pricing-grid, .blog-grid { grid-template-columns:repeat(2,1fr) !important; }
  .footer-grid { grid-template-columns:repeat(2,1fr); gap:32px; }
  .footer-brand { grid-column:1/-1; }
  .hero h1 { font-size:2.6rem; }
  .section-title { font-size:1.8rem; }
}

/* ---------- Responsive: Mobile ---------- */
@media (max-width:768px) {
  :root { --md-section-pad:56px 0; --md-container:100%; }
  html { font-size:15px; }
  .container { padding:0 16px; }

  .navbar, .navbar.scrolled {
    top:8px; left:8px; right:8px; width:auto; max-width:none;
    transform:none; border-radius:20px; padding:0;
  }
  .navbar .container { padding:8px 16px; }
  .navbar-brand .brand-logo { height:28px; max-width:120px; }
  .footer-brand .brand-logo { height:48px; max-width:180px; }

  .menu-toggle {
    display:flex; position:relative; z-index:2100; width:36px; height:36px;
    align-items:center; justify-content:center; padding:0;
  }

  .nav-links {
    display:none; position:fixed; top:0; left:0; right:0; bottom:0;
    width:100vw; height:100vh;
    background:rgba(15,23,42,.95);
    backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
    flex-direction:column; justify-content:center; align-items:center;
    gap:8px; z-index:2000; padding:24px; list-style:none; margin:0; overflow-y:auto;
  }
  .nav-links.open,
  body > .nav-links.mobile-menu.open { display:flex; }
  body > .nav-links.mobile-menu { display:none; }
  .nav-links li { width:100%; max-width:320px; text-align:center; }
  .nav-links a {
    font-size:1.1rem; font-weight:600; color:rgba(255,255,255,.85);
    padding:14px 0; display:block; border-radius:12px;
  }
  .nav-links a:hover { color:#fff; background:rgba(255,255,255,.1); }
  .nav-links a.active { color:#fff; background:rgba(255,255,255,.1); }
  .nav-links a.nav-cta {
    padding:14px 28px !important; font-size:1rem !important; margin-top:12px;
    background:#fff !important; color:var(--md-navy) !important; border-radius:40px !important;
  }

  .hero { padding-top:100px; padding-bottom:48px; min-height:auto; }
  .hero h1 { font-size:1.8rem; line-height:1.15; }
  .hero p { font-size:.95rem; }
  .hero-content { max-width:100%; }
  .hero-buttons { flex-direction:column; align-items:stretch; gap:10px; }
  .hero-buttons .btn { width:100%; justify-content:center; }
  .btn { white-space:normal; }
  .hero-stats { flex-direction:column; gap:16px; margin-top:32px; padding-top:24px; text-align:center; }
  .hero-stat h3 { font-size:1.5rem; }

  .features-grid, .features-grid.features-grid-3,
  .testimonials-grid, .pricing-grid, .blog-grid,
  .directory-grid { grid-template-columns:1fr !important; gap:16px; }
  .contact-grid { grid-template-columns:1fr; gap:24px; }
  .footer-grid { grid-template-columns:1fr; gap:28px; }
  .directory-feature { grid-template-columns:1fr; padding:32px 24px; gap:28px; }
  .footer-bottom { flex-direction:column; gap:14px; text-align:center; }
  .footer-bottom-links { flex-wrap:wrap; justify-content:center; }
  .section-title { font-size:1.5rem; }
  .page-header { padding:100px 0 44px; }
  .page-header h1 { font-size:1.7rem; }
  .btn-lg { padding:12px 22px; font-size:.92rem; }
  .card { padding:22px; }
}

@media (max-width:480px) {
  html { font-size:14.5px; }
  .container { padding:0 14px; }
  .navbar, .navbar.scrolled { top:6px; left:6px; right:6px; border-radius:16px; }
  .navbar .container { padding:8px 12px; }
  .navbar-brand .brand-logo { height:24px; max-width:100px; }
  .hero { padding-top:80px; }
  .hero h1 { font-size:1.5rem; }
  .section-title { font-size:1.35rem; }
  .page-header { padding:80px 0 36px; }
  .page-header h1 { font-size:1.4rem; }
  .navbar-brand .brand-logo { height:28px; max-width:110px; }
  .footer-brand .brand-logo { height:40px; max-width:160px; }
  .card { padding:18px; }
}

@media (max-width:900px) {
  .footer-grid { grid-template-columns:1fr 1fr; gap:32px; }
  .footer-brand { grid-column:1/-1; }
  .footer-bottom { flex-direction:column; text-align:center; }
}
@media (max-width:540px) {
  .footer-grid { grid-template-columns:1fr; gap:24px; }
  .footer { padding:56px 0 24px; }
}
