/*
Theme Name: Sarowar Hossain Lovelo & Associates (Auto-Sync Edition)
Theme URI: https://sarowarlovelo.com
Author: Advocate Md. Sarowar Hossain Lovelo
Author URI: https://sarowarlovelo.com
Description: Complete standalone bilingual WordPress theme with built-in in-domain Portal Engine (?sl_portal=...), strict MASTER ADMIN & Password lock screen (zero public access), encrypted Bar Directory vault, official website emblem & site icon, and real-time CMS auto-sync.
Version: 3.5.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: sarowar-lovelo
*/

:root {
  --sl-emerald: #064E3B;
  --sl-emerald-dark: #043628;
  --sl-crimson: #B91C1C;
  --sl-bg: #F2F7F4;
  --sl-rose-bg: #FDF4F4;
  --sl-ink: #111C17;
  --sl-muted: #4B5563;
  --sl-border: rgba(6, 78, 59, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--sl-bg);
  color: var(--sl-ink);
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.sl-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

.sl-header {
  background: var(--sl-emerald);
  color: #ffffff;
  border-bottom: 2px solid var(--sl-crimson);
  position: sticky;
  top: 0;
  z-index: 50;
}

.sl-nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.sl-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #1D9BF0;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.sl-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  font-weight: 500;
}

.sl-menu a {
  text-decoration: none;
  color: #D1FAE5;
}
.sl-menu a:hover { color: #ffffff; text-decoration: underline; }

.sl-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sl-hero {
  background: linear-gradient(135deg, #064E3B 0%, #053D2E 60%, #7F1D1D 100%);
  color: #ffffff;
  padding: 46px 0;
  border-bottom: 3px solid var(--sl-crimson);
}

.sl-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.sl-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #FCA5A5;
  margin-bottom: 8px;
}

.sl-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.22;
}

.sl-portrait-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.28);
  background: #043628;
  box-shadow: 0 18px 36px rgba(0,0,0,0.25);
}

.sl-facts-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.sl-fact-card {
  background: #ffffff;
  color: var(--sl-ink);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.25);
}

.sl-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--sl-border);
}
.sl-section-white { background: #ffffff; }
.sl-section-rose { background: var(--sl-rose-bg); }
.sl-section-emerald {
  background: var(--sl-emerald);
  color: #ffffff;
  border-bottom: 3px solid var(--sl-crimson);
}

.sl-section-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--sl-emerald);
}

.sl-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.sl-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.sl-card {
  background: #ffffff;
  border: 1px solid var(--sl-border);
  border-radius: 14px;
  padding: 20px;
}

.sl-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--sl-emerald);
}

.sl-list-clean {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.sl-list-clean li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(6, 78, 59, 0.1);
  font-size: 14px;
}

.sl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sl-emerald);
  color: #ffffff !important;
  padding: 9px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  border: 0;
  cursor: pointer;
}
.sl-btn:hover { background: var(--sl-emerald-dark); }
.sl-btn-crimson { background: var(--sl-crimson); }
.sl-btn-crimson:hover { background: #991B1B; }
.sl-btn-light { background: #ffffff; color: var(--sl-emerald) !important; }
.sl-btn-outline {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.45);
  color: #ffffff !important;
}

.sl-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #0F172A;
  margin-bottom: 12px;
}
.sl-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sl-footer {
  background: var(--sl-emerald-dark);
  color: #D1FAE5;
  padding: 40px 0;
  border-top: 3px solid var(--sl-crimson);
  font-size: 13px;
}

@media (max-width: 860px) {
  .sl-hero-grid { grid-template-columns: 1fr; }
}
