/* Common Voice Pashto - clean English LTR responsive front-end theme */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root{
  --bg:#f4f7fb;
  --surface:#ffffff;
  --surface-soft:#eef7ff;
  --text:#102033;
  --muted:#64748b;
  --border:rgba(15,23,42,.10);
  --shadow:0 20px 55px rgba(15,23,42,.09);
  --shadow-sm:0 10px 28px rgba(15,23,42,.07);
  --accent:#0ea5e9;
  --accent-dark:#0369a1;
  --success:#22c55e;
  --success-dark:#15803d;
  --radius:1.15rem;
  --nav-h:76px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{min-height:100%}
body{
  margin:0;
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  background:
    radial-gradient(850px 420px at 12% 0%, rgba(14,165,233,.14), transparent 62%),
    radial-gradient(800px 380px at 92% 12%, rgba(34,197,94,.10), transparent 60%),
    linear-gradient(180deg,#f8fbff 0%, var(--bg) 100%);
  color:var(--text);
  line-height:1.65;
  padding-top:var(--nav-h);
  overflow-x:hidden;
}
img,video,iframe{max-width:100%}
a{text-decoration:none; transition:all .2s ease}
p,li{color:rgba(16,32,51,.86)}
h1,h2,h3,h4,h5,h6{font-weight:900; line-height:1.38; letter-spacing:-.01em}
.text-accent{color:var(--accent)!important}
.text-secondary{color:var(--muted)!important}
.site-main{min-height:60vh}

/* Navbar */
.site-navbar{
  min-height:var(--nav-h);
  background:rgba(255,255,255,.92)!important;
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
  box-shadow:0 8px 24px rgba(15,23,42,.06);
}
.navbar-brand{color:var(--text)!important; max-width:52%}
.brand-logo{width:44px; height:44px; border-radius:999px; object-fit:cover; box-shadow:0 8px 20px rgba(2,6,23,.12); flex:0 0 auto}
.brand-text{font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.navbar .nav-link{
  color:var(--muted)!important;
  font-weight:850;
  padding:.58rem .82rem;
  border-radius:.85rem;
  margin:.08rem;
}
.navbar .nav-link:hover,.navbar .nav-link.active{color:var(--accent-dark)!important; background:rgba(14,165,233,.10)}
.navbar-toggler{border-color:rgba(15,23,42,.15); border-radius:.8rem; padding:.45rem .62rem}
.navbar-toggler:focus{box-shadow:0 0 0 .18rem rgba(14,165,233,.18)}

/* Hero / sections */
#home{position:relative; min-height:calc(72vh - var(--nav-h)); display:flex; align-items:center; overflow:hidden; border-bottom:1px solid var(--border)}
#home::before{content:""; position:absolute; inset:0; background:url("img/bannar.jpg") center/cover no-repeat; opacity:.16; filter:saturate(1.05) contrast(1.03)}
#home::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.96)), radial-gradient(circle at 12% 20%, rgba(14,165,233,.17), transparent 50%)}
#home .hero-content{position:relative; z-index:2}
.page-hero{padding-top:2rem!important}
section.section{padding:4rem 0 3rem}
.section-title{font-weight:950; margin-bottom:2rem; color:var(--text)}
.hero-badge{display:inline-flex; align-items:center; gap:.5rem; padding:.45rem 1rem; border-radius:999px; background:rgba(255,255,255,.94); border:1px solid var(--border); font-size:.92rem; color:var(--muted); box-shadow:var(--shadow-sm)}
.hero-badge span{color:var(--accent); font-weight:900}

/* Cards */
.card-custom,.card-custom-soft{border-radius:var(--radius); border:1px solid var(--border); box-shadow:var(--shadow); transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease; overflow:hidden}
.card-custom{background:var(--surface)}
.card-custom-soft{background:linear-gradient(180deg, rgba(238,247,255,.94), #fff)}
.card-custom:hover,.card-custom-soft:hover,.post-card:hover,.service-card:hover,.member-card:hover,.related-card:hover,.info-card:hover{transform:translateY(-3px); box-shadow:0 22px 58px rgba(15,23,42,.12); border-color:rgba(14,165,233,.22)}
.rounded-4{border-radius:var(--radius)!important}

/* Buttons */
.btn{border-radius:.95rem; font-weight:850; transition:transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:linear-gradient(135deg,var(--success),var(--accent)); border:none; box-shadow:0 14px 26px rgba(14,165,233,.18)}
.btn-primary:hover,.btn-primary:focus{background:linear-gradient(135deg,var(--success-dark),var(--accent-dark)); box-shadow:0 16px 30px rgba(14,165,233,.24)}
.btn-outline-light{color:var(--accent-dark)!important; background:rgba(14,165,233,.06); border-color:rgba(14,165,233,.28)!important}
.btn-outline-light:hover{color:var(--accent-dark)!important; background:rgba(14,165,233,.12); border-color:rgba(14,165,233,.45)!important}

/* Forms */
.form-control,.form-select{background:#fff; border-radius:.9rem; border:1px solid rgba(15,23,42,.16); color:var(--text); padding:.78rem .95rem}
.form-control::placeholder{color:rgba(100,116,139,.75)}
.form-control:focus,.form-select:focus{border-color:rgba(14,165,233,.75); box-shadow:0 0 0 .18rem rgba(14,165,233,.18)}

/* Shared components */
.tag-pill,.tiny-chip,.read-chip{display:inline-flex; align-items:center; gap:.35rem; font-weight:900; white-space:nowrap}
.tag-pill{padding:.28rem .75rem; border-radius:999px; font-size:.8rem; background:rgba(34,197,94,.10); border:1px solid rgba(34,197,94,.20); color:#166534}
.tiny-chip{font-size:.75rem; padding:.2rem .6rem; border-radius:999px; background:rgba(14,165,233,.10); border:1px solid rgba(14,165,233,.18); color:#0369a1}
.read-chip{font-size:.78rem; padding:.25rem .65rem; border-radius:.8rem; background:rgba(34,197,94,.10); border:1px solid rgba(34,197,94,.20); color:#166534}
.avatar-sm{width:56px; height:56px; border-radius:999px; object-fit:cover; border:2px solid rgba(14,165,233,.30)}
.img-cover{width:100%; height:100%; object-fit:cover}

/* Listing/detail page helpers */
.post-card,.service-card,.member-card,.related-card,.info-card{transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease}
.post-cover-wrap,.service-cover-wrap,.post-hero-cover,.service-hero-cover{position:relative}
.post-cover{height:205px; object-fit:cover; display:block}
.service-cover{height:185px; object-fit:cover; display:block}
.post-meta,.service-meta,.post-hero-floats,.service-hero-floats{position:absolute; left:14px; bottom:14px; display:flex; gap:8px; flex-wrap:wrap; z-index:5}
.featured-card,.post-hero,.service-hero{border-radius:1.35rem}
.featured-img{min-height:320px; object-fit:cover; display:block}
.post-hero-img,.service-hero-img{height:320px; object-fit:cover; display:block}
.post-body,.service-body{line-height:2; font-size:1.03rem}
.post-body h1,.post-body h2,.post-body h3,.service-body h1,.service-body h2,.service-body h3{color:#0b1220; margin-top:1.4rem; margin-bottom:.75rem; font-weight:950}
.post-body img,.service-body img{max-width:100%; height:auto; border-radius:1rem; margin:12px 0}
.post-body a,.service-body a{color:var(--accent); font-weight:850; border-bottom:1px dashed rgba(14,165,233,.45)}
.post-body a:hover,.service-body a:hover{border-bottom-style:solid}
.related-cover img{height:140px; object-fit:cover; display:block}
.member-avatar{width:66px; height:66px; object-fit:cover; border-width:2px!important; border-color:rgba(14,165,233,.28)!important}
.profile-card{border-radius:1.25rem}
.profile-avatar-wrap{position:relative; width:150px; margin:0 auto}
.profile-avatar{width:150px; height:150px; object-fit:cover; border-width:3px!important; border-color:rgba(14,165,233,.28)!important; border-radius:999px; background:#e2e8f0}
.profile-badge{position:absolute; right:-6px; bottom:10px; background:rgba(34,197,94,.12); border:1px solid rgba(34,197,94,.20); color:#166534; font-weight:900; border-radius:999px; padding:.28rem .6rem; font-size:.78rem; backdrop-filter:blur(8px)}
.social-link,.footer-social a{color:var(--accent); background:rgba(14,165,233,.08); border:1px solid rgba(14,165,233,.18); width:44px; height:44px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; text-decoration:none}
.social-link:hover,.footer-social a:hover{transform:translateY(-2px); background:rgba(14,165,233,.14)}
.footer-social{display:flex; gap:.45rem; justify-content:center; flex-wrap:wrap}
@media (min-width:992px){.sidebar-sticky{position:sticky; top:110px}}

/* Footer */
.site-footer{border-top:1px solid var(--border); color:rgba(71,85,105,.92); background:rgba(255,255,255,.84)!important; backdrop-filter:blur(12px)}

/* Animation */
.reveal{opacity:0; transform:translateY(14px); transition:opacity .58s ease, transform .58s ease; will-change:opacity,transform}
.reveal.in,.reveal.show{opacity:1; transform:none}

/* Mobile */
@media (max-width:991.98px){
  :root{--nav-h:68px}
  .navbar-brand{max-width:72%}
  .navbar-collapse{margin-top:.75rem; padding:.8rem; background:#fff; border:1px solid var(--border); border-radius:1rem; box-shadow:var(--shadow-sm)}
  .navbar .nav-link{display:block; margin:.15rem 0}
  #home{min-height:auto; padding:3rem 0}
  section.section{padding:3rem 0 2.25rem}
}
@media (max-width:575.98px){
  body{line-height:1.6}
  .container{padding-left:1rem; padding-right:1rem}
  h1,.display-4,.display-5{font-size:2rem}
  .lead{font-size:1rem}
  .btn-lg{font-size:1rem; padding:.75rem 1rem}
  .card-custom,.card-custom-soft{border-radius:1rem}
  .brand-logo{width:38px; height:38px}
  .brand-text{font-size:.95rem}
  section.section[style*="padding-top:110px"]{padding-top:2rem!important}
  .featured-img,.post-hero-img,.service-hero-img{min-height:0; height:220px}
  .post-cover,.service-cover{height:170px}
  .post-meta,.service-meta,.post-hero-floats,.service-hero-floats{position:static; padding:.75rem 0 0}
}
