:root {
  --brand-green: #0b5d3b;
  --brand-green-dark: #094a30;
  --brand-gold: #f2a900;
  --brand-gold-dark: #d99500;
  --brand-cream: #fdf8ee;
  --text-dark: #17251f;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: #fff;
}

a { text-decoration: none; }

/* ---------- Header ---------- */
.topbar { background: var(--brand-green-dark); color: #fff; }
.brand-icon { font-size: 2rem; color: var(--brand-green); }
.brand-name { font-weight: 800; font-size: 1.4rem; color: var(--brand-green); line-height: 1; }
.brand-dot { color: var(--brand-gold); }
.brand-tagline { font-size: .7rem; color: #6b7a72; font-weight: 500; }
.navbar-nav .nav-link { font-weight: 500; color: var(--text-dark); margin: 0 .5rem; }
.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover { color: var(--brand-green); }
.icon-link { font-size: 1.3rem; color: var(--text-dark); }
.icon-link:hover { color: var(--brand-green); }

.btn-brand { background: var(--brand-green); border-color: var(--brand-green); color: #fff; font-weight: 600; }
.btn-brand:hover { background: var(--brand-green-dark); border-color: var(--brand-green-dark); color: #fff; }
.btn-outline-brand { border: 1px solid var(--brand-green); color: var(--brand-green); font-weight: 600; }
.btn-outline-brand:hover { background: var(--brand-green); color: #fff; }
.btn-gold { background: var(--brand-gold); border-color: var(--brand-gold); color: #17251f; font-weight: 600; }
.btn-gold:hover { background: var(--brand-gold-dark); border-color: var(--brand-gold-dark); color: #17251f; }
.text-brand { color: var(--brand-green) !important; }
.bg-brand { background: var(--brand-green) !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: url('../images/hero-bg.jpg') center 30%/cover no-repeat;
  padding: 4.5rem 0;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(7,53,35,.92) 0%, rgba(7,53,35,.72) 40%, rgba(7,53,35,.35) 75%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-weight: 800; font-size: 2.6rem; line-height: 1.2; color: #fff; }
.hero h1 .text-brand { color: var(--brand-gold) !important; }
.hero > .container > .row > div > p.text-muted { color: rgba(255,255,255,.85) !important; }
.hero-search { background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: .5rem; }
.hero-search .form-control, .hero-search .form-select { border: none; box-shadow: none; }
.trust-badges { border-top: 1px solid rgba(255,255,255,.2); }
.trust-badges i { font-size: 1.6rem; color: var(--brand-gold); }
.trust-badges strong { color: #fff; }
.trust-badges .text-muted { color: rgba(255,255,255,.75) !important; }

/* ---------- Category tiles ---------- */
.category-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all .2s ease;
  color: var(--text-dark);
  height: 100%;
}
.category-card:hover { border-color: var(--brand-green); box-shadow: 0 8px 20px rgba(11,93,59,.1); transform: translateY(-3px); }
.category-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand-cream); display: flex; align-items: center; justify-content: center;
  margin: 0 auto .75rem; font-size: 1.5rem; color: var(--brand-green);
}

/* ---------- Business cards ---------- */
.business-card { border: 1px solid #eee; border-radius: 14px; overflow: hidden; transition: box-shadow .2s ease; height: 100%; background: #fff; }
.business-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.1); }
.business-card .card-img-top { height: 180px; object-fit: cover; }
.business-card-badge { position: absolute; top: .75rem; left: .75rem; }
.business-card-fav { position: absolute; top: .75rem; right: .75rem; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; }
.business-logo-sm { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; margin-top: -30px; background: #fff; }
.stars { color: var(--brand-gold); font-size: .85rem; }
.stars i { margin-right: 1px; }

/* ---------- Stats strip ---------- */
.stats-strip { background: linear-gradient(90deg, var(--brand-green) 0%, var(--brand-green-dark) 100%); border-radius: 16px; color: #fff; }
.stats-strip i { font-size: 1.8rem; color: var(--brand-gold); }
.stats-strip .stat-num { font-weight: 800; font-size: 1.6rem; }

/* ---------- Generic section cards ---------- */
.section-card { border: 1px solid #eee; border-radius: 14px; padding: 1.5rem; }
.offer-card { background: var(--brand-cream); border-radius: 14px; padding: 1.5rem; }

/* ---------- Radio Ceylon ---------- */
.radio-player-card { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 1.5rem; }
.radio-play-btn {
  width: 60px; height: 60px; border-radius: 50%; border: none;
  background: var(--brand-green); color: #fff; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.radio-play-btn:hover { background: var(--brand-green-dark); }
.radio-play-btn.playing { background: var(--brand-gold); color: #17251f; }
.radio-station-btn.active { background: var(--brand-green); color: #fff; }

/* ---------- Ads ---------- */
.ad-slot { text-align: center; margin: 1.5rem 0; }
.ad-label { display: block; font-size: .65rem; letter-spacing: .05em; text-transform: uppercase; color: #999; margin-bottom: .35rem; }
.ad-placeholder {
  border: 1px dashed #ccc; border-radius: 8px; background: #fafafa;
  color: #aaa; font-size: .8rem; padding: 2rem 1rem; min-height: 90px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-green-dark); color: #cfe3d8; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #cfe3d8; }
.footer-links a:hover { color: var(--brand-gold); }
.text-light-50 { color: #cfe3d8; opacity: .8; }
.footer-bottom { background: #073523; color: #a9c4b7; }

/* ---------- Testimonials ---------- */
.testimonial-card { border: 1px solid #eee; border-radius: 14px; padding: 1.5rem; height: 100%; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* ---------- Blog ---------- */
.blog-card { border-radius: 14px; overflow: hidden; border: 1px solid #eee; height: 100%; }
.blog-card img { height: 170px; object-fit: cover; width: 100%; }
.blog-tag { position: absolute; top: .75rem; left: .75rem; }

/* ---------- Dashboard / Admin shell ---------- */
.app-shell { display: flex; min-height: 100vh; background: #f5f7f6; }
.app-sidebar { width: 250px; background: var(--brand-green-dark); color: #fff; flex-shrink: 0; }
.app-sidebar a { color: #cfe3d8; display: flex; align-items: center; gap: .6rem; padding: .6rem 1.1rem; border-radius: 8px; font-size: .92rem; }
.app-sidebar a:hover, .app-sidebar a.active { background: rgba(255,255,255,.1); color: #fff; }
.app-sidebar .brand-name { color: #fff; }
.app-main { flex: 1; min-width: 0; }
.app-topbar { background: #fff; border-bottom: 1px solid #eee; }
.stat-tile { border: 1px solid #eee; border-radius: 12px; padding: 1.25rem; background: #fff; }
.stat-tile .stat-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }

/* ---------- Misc ---------- */
.rounded-14 { border-radius: 14px; }
.section-title { font-weight: 800; }
.link-view-all { font-weight: 600; }
.badge-verified { background: var(--brand-green); }
.badge-featured { background: var(--brand-gold); color: #17251f; }
