/* =========================================================
   SocietyPro – main stylesheet
   Media queries live in responsive.css (load it after this file).
   All font sizes are in px.

   CONTENTS
   01. Variables
   02. Base
   03. Layout helpers
   04. Buttons
   05. Top bar and navbar
   06. Hero (home) and inner page hero
   07. Dashboard mockup
   08. Modules (tabs) and check list
   09. Stats band
   10. Steps
   11. Mobile app card
   12. Testimonials
   13. CTA band
   14. Blog (cards, rows, featured, sidebar)
   15. Home: get in touch
   16. About page
   17. Features page
   18. Contact page
   19. Footer and back-to-top
   ========================================================= */


/* ---------- 01. Variables ---------- */
:root {
  --sp-primary: #5b46f0;
  --sp-primary-dark: #4535c8;
  --sp-primary-soft: #ebe8ff;
  --sp-bg: #f7f6ff;
  --sp-ink: #12122b;
  --sp-text: #4b4c6a;
  --sp-muted: #7a7b99;
  --sp-line: #e2e0f3;
  --sp-navy: #0f1128;
  --sp-hero: linear-gradient(135deg, #15123f 0%, #251b82 58%, #4535c8 100%);
  --sp-green: #1faa6b;
  --sp-amber: #f0a020;
  --sp-red: #e5484d;
  --r: 8px;
  --r-lg: 14px;
  --sp-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --sp-body: "Inter", "Segoe UI", system-ui, sans-serif;
}


/* ---------- 02. Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--sp-body); font-size: 16px; color: var(--sp-text); background: #fff; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--sp-head); color: var(--sp-ink); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
a { color: var(--sp-primary); text-decoration: none; }
a:hover { color: var(--sp-primary-dark); }
img, svg { max-width: 100%; }
::selection { background: var(--sp-primary); color: #fff; }
:focus-visible { outline: 3px solid rgba(91, 70, 240, .5); outline-offset: 2px; }

/* form controls */
.form-label { font-family: var(--sp-head); font-weight: 700; font-size: 14px; color: var(--sp-ink); }
.form-control, .form-select { font-size: 16px; border-radius: var(--r); border: 1.5px solid var(--sp-line); padding: .75rem 1rem; color: var(--sp-ink); }
.form-control:focus, .form-select:focus { border-color: var(--sp-primary); box-shadow: 0 0 0 3px rgba(91, 70, 240, .15); }
.form-success { display: none; background: #e2f7ee; color: #0d6b44; border-radius: var(--r); padding: 1rem 1.2rem; margin-top: 1rem; font-weight: 600; }
.form-success.show { display: block; }

/* shared status colours (badges, tags, icon tiles) */
.tg-green { background: #e2f7ee; color: var(--sp-green); }
.tg-amber { background: #fdf0d8; color: #b46f08; }
.tg-red { background: #fde8e9; color: var(--sp-red); }
.ico-green { background: #e2f7ee; color: var(--sp-green); }
.ico-primary { background: var(--sp-primary-soft); color: var(--sp-primary); }
.ico-amber { background: #fdf0d8; color: #c47d0c; }
.ico-red { background: #fde8e9; color: var(--sp-red); }
.badge-sp { font-family: var(--sp-head); font-size: 12px; font-weight: 700; padding: .22rem .6rem; border-radius: 99px; white-space: nowrap; }

/* avatars and person */
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--sp-head); font-weight: 800; font-size: 15px; color: #fff; }
.av1 { background: linear-gradient(135deg, #7a67ff, #4535c8); }
.av2 { background: linear-gradient(135deg, #20b97a, #118055); }
.av3 { background: linear-gradient(135deg, #f0a020, #d1700a); }
.av4 { background: linear-gradient(135deg, #e5484d, #b02a30); }
.person { display: flex; align-items: center; gap: .8rem; }
.person strong { display: block; color: var(--sp-ink); font-family: var(--sp-head); font-size: 16px; line-height: 1.2; }
.person span { font-size: 14px; color: var(--sp-muted); }

/* small fake browser dots, shared by .dash-bar and .mock-bar */
.dash-bar span, .mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #ff8a8a; }
.dash-bar span:nth-child(2), .mock-bar span:nth-child(2) { background: #ffd279; }
.dash-bar span:nth-child(3), .mock-bar span:nth-child(3) { background: #7be0b0; }


/* ---------- 03. Layout helpers ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.bg-soft { background: var(--sp-bg); }
.text-ink { color: var(--sp-ink); }
.lead-sm { font-size: 17px; max-width: 600px; }

.pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--sp-primary-soft); color: var(--sp-primary); font-family: var(--sp-head); font-weight: 700; font-size: 12px; padding: .38rem .85rem; border-radius: 999px; margin-bottom: 1rem; }

/* section title: small bar above the heading */
.sec-title { margin-bottom: 44px; max-width: 680px; }
.sec-title h2, .sec-h2 { font-size: 38px; margin: 0 0 .8rem; }
.sec-title h2 { padding-top: 18px; position: relative; }
.sec-title h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 4px; background: var(--sp-primary); border-radius: 2px; }
.sec-title p { margin: 0; }
.sec-title.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-title.center h2::before { left: 50%; transform: translateX(-50%); }

.check-list { list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; }
.check-list li { padding-left: 1.9rem; position: relative; margin-bottom: .6rem; color: var(--sp-ink); font-weight: 500; font-size: 15px; }
.check-list li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--sp-green); font-size: 18px; }

.link-arrow { font-family: var(--sp-head); font-weight: 700; font-size: 14px; }
.link-arrow i { display: inline-block; margin-left: .3rem; transition: transform .18s; }
.link-arrow:hover i { transform: translateX(4px); }


/* ---------- 04. Buttons ---------- */
.btn { font-family: var(--sp-head); font-weight: 700; font-size: 15px; border-radius: var(--r); padding: .75rem 1.4rem; border-width: 1.5px; transition: all .18s ease; }
.btn i { margin-right: .45rem; }
.btn-sm-x { padding: .5rem 1rem; font-size: 14px; }
.btn-sp { background: var(--sp-primary); border-color: var(--sp-primary); color: #fff; }
.btn-sp:hover { background: var(--sp-primary-dark); border-color: var(--sp-primary-dark); color: #fff; }
.btn-sp-outline { background: transparent; border-color: var(--sp-primary); color: var(--sp-primary); }
.btn-sp-outline:hover { background: var(--sp-primary); color: #fff; }
.btn-white { background: #fff; border-color: #fff; color: var(--sp-primary-dark); }
.btn-white:hover { background: var(--sp-primary-soft); border-color: var(--sp-primary-soft); color: var(--sp-primary-dark); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }


/* ---------- 05. Top bar and navbar ---------- */
.topbar { background: var(--sp-navy); color: #b9b8d8; font-size: 13px; padding: .45rem 0; }
.topbar a { color: #b9b8d8; }
.topbar a:hover { color: #fff; }
.topbar i { color: #8f80ff; margin-right: .35rem; }
.topbar .sep { margin: 0 1rem; opacity: .3; }

.sp-nav { background: #fff; border-bottom: 1px solid var(--sp-line); padding: .75rem 0; z-index: 1030; transition: box-shadow .2s; }
.sp-nav.scrolled { box-shadow: 0 6px 20px rgba(18, 18, 43, .07); }
.sp-nav .navbar-nav { --bs-nav-link-padding-y: 8px; --bs-navbar-nav-link-padding-x: 17px; }
.sp-nav .nav-link { font-family: var(--sp-head); font-weight: 700; font-size: 15px; color: var(--sp-ink); position: relative; }
.sp-nav .nav-link:hover, .sp-nav .nav-link.active { color: var(--sp-primary); }
.sp-nav .nav-link.active::after { content: ""; position: absolute; left: 17px; right: 17px; bottom: -14px; height: 3px; background: var(--sp-primary); }
.navbar-toggler { border: 1.5px solid var(--sp-line); border-radius: var(--r); padding: .35rem .55rem; }
.navbar-toggler i { font-size: 24px; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(91, 70, 240, .25); }

.brand { display: flex; align-items: center; gap: .65rem; color: var(--sp-ink); }
.brand:hover { color: var(--sp-ink); }
.brand-mark { width: 42px; height: 42px; border-radius: 10px; background: var(--sp-primary); display: grid; place-items: center; color: #fff; font-size: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--sp-head); font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.brand-text small { font-size: 11px; color: var(--sp-muted); font-weight: 500; margin-top: 2px; }


/* ---------- 06. Hero (home) and inner page hero ---------- */
.hero, .page-hero { background: var(--sp-hero); color: #cfcdf5; position: relative; overflow: hidden; }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; }
.hero .container, .page-hero .container { position: relative; z-index: 1; }

.hero { padding: 84px 0 84px; }
.hero::before { mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero h1 { color: #fff; font-size: 58px; line-height: 1.04; letter-spacing: -.04em; margin-bottom: 1.3rem; }
.hero .lead-sm { margin-bottom: 2rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid rgba(255, 255, 255, .25); color: #e4e1ff; font-size: 13px; font-weight: 600; padding: .35rem .85rem; border-radius: 99px; margin-bottom: 1.4rem; }
.hero-badge i { color: #ffd166; }
.hero-checks { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.hero-checks li { font-size: 14px; color: #fff; font-weight: 500; }
.hero-checks i { color: #6ee7b0; margin-right: .4rem; }

.page-hero { padding: 64px 0 72px; }
.page-hero::before { mask-image: linear-gradient(90deg, transparent 20%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000); }
.page-hero h1 { color: #fff; font-size: 46px; letter-spacing: -.035em; margin-bottom: .9rem; max-width: 780px; }
.page-hero p { max-width: 620px; margin: 0; font-size: 17px; }
.crumbs { font-size: 14px; margin-bottom: 1.1rem; color: #b6b3ee; }
.crumbs a { color: #b6b3ee; }
.crumbs a:hover { color: #fff; }
.crumbs i { font-size: 10px; margin: 0 .4rem; }
.crumbs span { color: #fff; font-weight: 600; }


/* ---------- 07. Dashboard mockup (home hero) ---------- */
.dash { position: relative; background: #fff; border-radius: var(--r-lg); box-shadow: 0 30px 70px rgba(5, 3, 40, .45); overflow: hidden; color: var(--sp-text); }
.dash-bar { background: #f1effc; padding: .6rem .9rem; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--sp-line); }
.dash-bar em { margin-left: 12px; font-style: normal; font-size: 12px; color: var(--sp-muted); background: #fff; padding: .15rem .8rem; border-radius: 6px; flex: 1; max-width: 260px; }
.dash-body { display: flex; }
.dash-side { width: 54px; background: var(--sp-navy); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; color: #8f8fb8; font-size: 17px; }
.dash-side .on { color: #fff; background: var(--sp-primary); width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.dash-main { flex: 1; padding: 18px; min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dash-head strong { font-family: var(--sp-head); color: var(--sp-ink); font-size: 15px; }
.dash-head small { color: var(--sp-muted); }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.dash-kpis div { border: 1px solid var(--sp-line); border-radius: var(--r); padding: 10px 12px; }
.dash-kpis small { display: block; font-size: 11px; color: var(--sp-muted); }
.dash-kpis b { font-family: var(--sp-head); color: var(--sp-ink); font-size: 18px; }
.dash-kpis i { font-style: normal; font-size: 11px; color: var(--sp-green); font-weight: 700; margin-left: 4px; }
.dash-chart { border: 1px solid var(--sp-line); border-radius: var(--r); padding: 12px; margin-bottom: 14px; }
.dash-chart small { color: var(--sp-muted); font-size: 11px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 92px; margin-top: 8px; }
.bars span { flex: 1; background: var(--sp-primary-soft); border-radius: 4px 4px 0 0; }
.bars span.hi { background: var(--sp-primary); }
.dash-row { display: flex; align-items: center; gap: 10px; padding: .5rem 0; border-top: 1px solid #f0eefb; font-size: 12px; }
.dash-row .avatar { width: 30px; height: 30px; font-size: 11px; }
.dash-row b { display: block; color: var(--sp-ink); font-family: var(--sp-head); font-size: 13px; line-height: 1.2; }
.dash-row small { color: var(--sp-muted); }
.dash-row .badge-sp { margin-left: auto; }
.dash-float { position: absolute; right: 16px; bottom: 16px; background: var(--sp-navy); color: #fff; border-radius: 10px; padding: .6rem .9rem; display: flex; align-items: center; gap: .6rem; font-size: 12px; box-shadow: 0 14px 30px rgba(5, 3, 40, .4); }
.dash-float i { color: #6ee7b0; font-size: 18px; }
.dash-float b { display: block; font-family: var(--sp-head); font-size: 13px; }


/* ---------- 08. Modules (tabs) ---------- */
.mod-tabs { gap: .5rem; }
.mod-tabs .nav-link { display: flex; align-items: center; gap: .85rem; text-align: left; border: 1px solid var(--sp-line); background: #fff; color: var(--sp-ink); font-family: var(--sp-head); font-weight: 700; font-size: 16px; padding: .9rem 1.1rem; border-radius: var(--r); transition: all .15s; }
.mod-tabs .nav-link i:first-child { font-size: 20px; color: var(--sp-primary); width: 26px; }
.mod-tabs .nav-link .chev { margin-left: auto; font-size: 13px; opacity: .4; }
.mod-tabs .nav-link:hover { border-color: var(--sp-primary); }
.mod-tabs .nav-link.active { background: var(--sp-primary); border-color: var(--sp-primary); color: #fff; }
.mod-tabs .nav-link.active i { color: #fff; opacity: 1; }
.mod-panel { background: #fff; border: 1px solid var(--sp-line); border-radius: var(--r-lg); padding: 38px; height: 100%; }
.mod-panel h3 { font-size: 27px; margin-bottom: .8rem; }
.mod-stat { background: var(--sp-bg); border-left: 4px solid var(--sp-primary); border-radius: var(--r); padding: 22px 24px; }
.mod-stat b { display: block; font-family: var(--sp-head); font-size: 42px; color: var(--sp-primary); line-height: 1; margin-bottom: .4rem; }
.mod-stat span { color: var(--sp-text); font-size: 15px; }


/* ---------- 09. Stats band (home) ---------- */
.stats-band { background: var(--sp-primary); border-radius: 20px; padding: 36px 24px; color: #fff; box-shadow: 0 20px 40px rgba(91, 70, 240, .28); }
.stat { text-align: center; padding: 0 .5rem; }
.stat i { font-size: 24px; opacity: .85; }
.stat .num { font-family: var(--sp-head); font-weight: 800; font-size: 34px; line-height: 1.1; margin-top: .4rem; color: #fff; }
.stat .lbl { font-weight: 700; font-size: 15px; color: #fff; }
.stat .sub { font-size: 13px; opacity: .75; }


/* ---------- 10. Steps ---------- */
.step { position: relative; padding-right: 20px; }
.step-no { width: 54px; height: 54px; border-radius: 50%; background: var(--sp-primary); color: #fff; display: grid; place-items: center; font-family: var(--sp-head); font-weight: 800; font-size: 21px; margin-bottom: 1.1rem; position: relative; z-index: 1; box-shadow: 0 0 0 8px var(--sp-primary-soft); }
.step h3 { font-size: 19px; margin-bottom: .45rem; }
.step p { margin: 0; font-size: 15px; }
.steps .col-md-4:not(:last-child) .step::after { content: ""; position: absolute; top: 27px; left: 70px; right: 10px; border-top: 2px dashed #c7c0fb; }


/* ---------- 11. Mobile app card (home) ---------- */
.app-card { background: linear-gradient(120deg, #fff 0%, #f1eeff 100%); border: 1px solid var(--sp-line); border-radius: 26px; overflow: hidden; box-shadow: 0 10px 30px rgba(52, 40, 160, .08); }
.app-copy { padding: 56px 48px; }
.store-btn { display: inline-flex; align-items: center; gap: .6rem; background: var(--sp-ink); color: #fff; padding: .6rem 1.1rem; border-radius: 10px; font-family: var(--sp-head); font-weight: 700; font-size: 14px; }
.store-btn:hover { background: #000; color: #fff; }
.store-btn i { font-size: 18px; }
.app-art { position: relative; min-height: 380px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 36px 20px; overflow: hidden; }
.app-art::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, #cfc7ff 0%, rgba(207, 199, 255, 0) 70%); }
.phone { position: relative; width: 190px; background: #1b1b36; border-radius: 28px; padding: 8px; box-shadow: 0 24px 50px rgba(30, 20, 120, .32); }
.phone.tilt-l { transform: rotate(-4deg) translateY(8px); }
.phone.tilt-r { transform: rotate(4deg) translateY(-8px); }
.phone-screen { background: #fff; border-radius: 21px; padding: 14px 12px 12px; min-height: 340px; font-size: 10px; }
.ph-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--sp-head); font-weight: 800; color: var(--sp-ink); font-size: 12px; margin-bottom: 10px; }
.ph-bill { background: var(--sp-primary); color: #fff; border-radius: 10px; padding: 10px; margin-bottom: 10px; }
.ph-bill small { opacity: .8; display: block; }
.ph-bill b { font-family: var(--sp-head); font-size: 20px; display: block; margin: 2px 0 8px; }
.ph-pay { background: #fff; color: var(--sp-primary); text-align: center; border-radius: 6px; font-weight: 800; padding: 5px; font-family: var(--sp-head); }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.ph-grid div { background: var(--sp-bg); border-radius: 8px; padding: 7px 2px; color: var(--sp-ink); font-weight: 600; }
.ph-grid i { display: block; font-size: 15px; color: var(--sp-primary); margin-bottom: 2px; }
.ph-row { display: flex; align-items: center; gap: 7px; padding: 7px 0; border-bottom: 1px solid var(--sp-line); }
.ph-row:last-child { border: 0; }
.ph-row .dot { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; font-size: 11px; }
.ph-row b { display: block; color: var(--sp-ink); font-size: 10px; }
.ph-row small { color: var(--sp-muted); font-size: 9px; }
.ph-tag { margin-left: auto; font-size: 8px; font-weight: 700; padding: 2px 6px; border-radius: 99px; }


/* ---------- 12. Testimonials ---------- */
.quote-wrap { background: var(--sp-bg); border-radius: var(--r-lg); padding: 52px; position: relative; }
.quote-mark { position: absolute; top: 24px; left: 40px; font-size: 80px; color: var(--sp-primary); opacity: .18; line-height: 1; font-family: Georgia, serif; }
.quote-wrap blockquote { font-family: var(--sp-head); font-weight: 700; font-size: 25px; line-height: 1.4; color: var(--sp-ink); letter-spacing: -.015em; margin: 0 0 1.6rem; position: relative; }
.carousel-indicators { position: static; margin: 1.6rem 0 0; justify-content: flex-start; }
.carousel-indicators [data-bs-target] { width: 28px; height: 4px; border: 0; background: var(--sp-primary); opacity: .25; border-radius: 2px; margin: 0 6px 0 0; }
.carousel-indicators .active { opacity: 1; }
.result-box { border-left: 3px solid var(--sp-primary); padding: .2rem 0 .2rem 1.2rem; margin-bottom: 1.4rem; }
.result-box b { display: block; font-family: var(--sp-head); font-size: 32px; color: var(--sp-ink); line-height: 1.1; }
.result-box span { font-size: 14px; color: var(--sp-muted); }


/* ---------- 13. CTA band ---------- */
.cta-full { background: var(--sp-primary); color: #fff; padding: 56px 0; }
.cta-full h2 { color: #fff; font-size: 32px; margin-bottom: .4rem; }
.cta-full p { margin: 0; opacity: .88; }
.cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: flex-end; }


/* ---------- 14. Blog ---------- */
.post-card { background: #fff; border: 1px solid var(--sp-line); border-radius: var(--r-lg); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: border-color .18s, box-shadow .18s; }
.post-card:hover { border-color: #bdb4ff; box-shadow: 0 14px 34px rgba(37, 27, 130, .1); }
.post-cover { height: 170px; display: grid; place-items: center; color: rgba(255, 255, 255, .95); font-size: 51px; position: relative; overflow: hidden; }
.post-cover.tall { height: 250px; font-size: 67px; }
.post-cover::before { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, .12); right: -40px; top: -60px; }
.post-cover i { position: relative; }
.cv1 { background: linear-gradient(135deg, #7a67ff, #4535c8); }
.cv2 { background: linear-gradient(135deg, #20b97a, #0f7a50); }
.cv3 { background: linear-gradient(135deg, #f0a020, #cf6d0a); }
.cv4 { background: linear-gradient(135deg, #3b82f6, #1d4fb8); }
.cv5 { background: linear-gradient(135deg, #e5484d, #a82a30); }
.cv6 { background: linear-gradient(135deg, #14b8c4, #0b7480); }
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--sp-muted); margin-bottom: .65rem; }
.post-cat { color: var(--sp-primary); font-family: var(--sp-head); font-weight: 800; }
.post-body h3 { font-size: 18px; line-height: 1.32; margin-bottom: .5rem; }
.post-body h3 a, .post-row h3 a { color: var(--sp-ink); }
.post-body h3 a:hover, .post-row h3 a:hover { color: var(--sp-primary); }
.post-body p { font-size: 15px; margin-bottom: 1rem; }
.post-body .link-arrow { margin-top: auto; }
.post-item.is-hidden { display: none; }

.post-row { display: flex; gap: 18px; background: #fff; border: 1px solid var(--sp-line); border-radius: var(--r-lg); padding: 14px; transition: border-color .18s; }
.post-row:hover { border-color: #bdb4ff; }
.post-row + .post-row { margin-top: 16px; }
.post-row .thumb { width: 130px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 32px; }
.post-row h3 { font-size: 17px; margin: .1rem 0 .35rem; }
.post-row p { margin: 0; font-size: 14px; }

.featured-post { border: 1px solid var(--sp-line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.featured-cover { min-height: 340px; height: 100%; display: grid; place-items: center; color: #fff; font-size: 96px; position: relative; overflow: hidden; background: var(--sp-hero); }
.featured-cover::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: rgba(255, 255, 255, .08); right: -80px; top: -100px; }
.featured-cover i { position: relative; }
.featured-body { padding: 44px; }
.featured-body h2 { font-size: 32px; margin-bottom: .9rem; }

.side-box { border: 1px solid var(--sp-line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 24px; background: #fff; }
.side-box h3 { font-size: 17px; margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--sp-line); }
.side-cats { list-style: none; padding: 0; margin: 0; }
.filter-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; background: none; border: 0; border-radius: var(--r); padding: .6rem .8rem; font-family: var(--sp-head); font-weight: 700; font-size: 15px; color: var(--sp-ink); text-align: left; }
.filter-btn small { color: var(--sp-muted); font-weight: 600; }
.filter-btn:hover { background: var(--sp-bg); color: var(--sp-primary); }
.filter-btn.active { background: var(--sp-primary); color: #fff; }
.filter-btn.active small { color: #d8d3ff; }
.pop { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--sp-line); }
.pop:last-child { border: 0; padding-bottom: 0; }
.pop .n { font-family: var(--sp-head); font-weight: 800; font-size: 24px; color: #cfc9fb; line-height: 1; }
.pop a { display: block; font-family: var(--sp-head); font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--sp-ink); }
.pop a:hover { color: var(--sp-primary); }
.pop small { color: var(--sp-muted); }
.side-news { background: var(--sp-navy); border-color: var(--sp-navy); color: #b9b8d8; }
.side-news h3 { color: #fff; border-color: rgba(255, 255, 255, .12); }
.side-news p { font-size: 14px; }
.side-news .form-control { border: 0; }

.pagination { --bs-pagination-border-radius: var(--r); }
.pagination .page-link { font-family: var(--sp-head); font-weight: 700; font-size: 16px; color: var(--sp-ink); border: 1px solid var(--sp-line); border-radius: var(--r); margin: 0 .2rem; }
.pagination .page-item.active .page-link { background: var(--sp-primary); border-color: var(--sp-primary); color: #fff; }


/* ---------- 15. Home: get in touch ---------- */
.touch { border: 1px solid var(--sp-line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.touch-main { background: var(--sp-hero); color: #cfcdf5; padding: 48px 44px; height: 100%; }
.touch-main h2 { color: #fff; font-size: 34px; margin-bottom: .8rem; }
.touch-main p { margin-bottom: 1.6rem; }
.touch-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: 1fr; height: 100%; }
.touch-item { display: flex; align-items: center; gap: 1.1rem; padding: 26px 34px; border-bottom: 1px solid var(--sp-line); color: var(--sp-text); }
.touch-item:last-child { border-bottom: 0; }
a.touch-item:hover { background: var(--sp-bg); color: var(--sp-text); }
.touch-item small { display: block; color: var(--sp-muted); font-size: 13px; }
.touch-item b { display: block; color: var(--sp-ink); font-family: var(--sp-head); font-size: 16px; line-height: 1.4; word-break: break-word; }
.touch-ico { width: 46px; height: 46px; border-radius: 10px; background: var(--sp-primary-soft); color: var(--sp-primary); display: grid; place-items: center; font-size: 19px; flex: none; }


/* ---------- 16. About page ---------- */
.cover-panel { border-radius: var(--r-lg); overflow: hidden; background: #e6e1ff; min-height: 380px; border: 1px solid var(--sp-line); }
.cover-panel svg { width: 100%; height: 100%; display: block; }
.mini-stat { border-top: 3px solid var(--sp-primary); padding-top: .8rem; }
.mini-stat b { display: block; font-family: var(--sp-head); font-size: 32px; color: var(--sp-ink); line-height: 1.1; }
.mini-stat span { font-size: 14px; color: var(--sp-muted); }
.mv-card { border-radius: var(--r-lg); padding: 38px; height: 100%; }
.mv-card.dark { background: var(--sp-navy); color: #b9b8d8; }
.mv-card.dark h3 { color: #fff; }
.mv-card.light { background: var(--sp-primary-soft); }
.mv-card i { display: block; font-size: 32px; color: var(--sp-primary); margin-bottom: 1rem; }
.mv-card.dark i { color: #9d8fff; }
.mv-card h3 { font-size: 24px; margin-bottom: .6rem; }
.mv-card p { margin: 0; }
.val { border-top: 1px solid var(--sp-line); padding-top: 1.4rem; height: 100%; position: relative; }
.val::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 3px; background: var(--sp-primary); }
.val i { font-size: 27px; color: var(--sp-primary); }
.val h3 { font-size: 18px; margin: .7rem 0 .4rem; }
.val p { margin: 0; font-size: 15px; }
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--sp-line); }
.tl-item { position: relative; margin-bottom: 1.8rem; }
.tl-item::before { content: ""; position: absolute; left: -34px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--sp-primary); }
.tl-item .yr { font-family: var(--sp-head); font-weight: 800; color: var(--sp-primary); }
.tl-item h3 { font-size: 17px; margin: .1rem 0 .25rem; }
.tl-item p { margin: 0; font-size: 15px; }


/* ---------- 17. Features page ---------- */
.module-card, .value-card { background: #fff; border: 1px solid var(--sp-line); border-radius: 18px; height: 100%; }
.module-card { padding: 28px 24px; transition: border-color .2s, box-shadow .2s; }
.module-card:hover { border-color: #c9c2ff; box-shadow: 0 10px 30px rgba(52, 40, 160, .08); }
.value-card { padding: 26px; }
.module-ico { width: 54px; height: 54px; border-radius: 14px; background: var(--sp-primary-soft); color: var(--sp-primary); display: grid; place-items: center; font-size: 24px; margin-bottom: 1.1rem; }
.module-card h3, .value-card h3 { font-size: 18px; margin-bottom: .5rem; }
.module-card p { font-size: 15px; margin-bottom: 1rem; }
.value-card p { margin: 0; font-size: 15px; }

.feature-row { padding: 56px 0; }
.feature-row + .feature-row { border-top: 1px solid var(--sp-line); }
.feature-row h2 { font-size: 32px; margin-bottom: .8rem; }

.mock { background: #fff; border: 1px solid var(--sp-line); border-radius: 20px; padding: 22px; box-shadow: 0 24px 60px rgba(52, 40, 160, .16); }
.mock-bar { display: flex; gap: 6px; margin-bottom: 16px; }
.mock-title { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 14px; }
.mock-title strong { font-family: var(--sp-head); color: var(--sp-ink); }
.mock table { width: 100%; font-size: 14px; }
.mock th { color: var(--sp-muted); font-weight: 600; font-size: 12px; padding: .45rem .4rem; border-bottom: 1px solid var(--sp-line); }
.mock td { padding: .6rem .4rem; border-bottom: 1px solid #f0eefb; color: var(--sp-ink); }
.mock tr:last-child td { border: 0; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mock-kpis div { background: var(--sp-bg); border-radius: var(--r); padding: 10px 12px; }
.mock-kpis small { display: block; color: var(--sp-muted); font-size: 12px; }
.mock-kpis b { font-family: var(--sp-head); color: var(--sp-ink); font-size: 18px; }
.mock-progress { margin-top: 16px; font-size: 14px; }
.bar-track { height: 9px; background: var(--sp-primary-soft); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--sp-primary); border-radius: 99px; }
.visitor-row { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid #f0eefb; }
.visitor-row:last-child { border: 0; }
.visitor-row .avatar { width: 38px; height: 38px; font-size: 13px; }
.visitor-row b { display: block; color: var(--sp-ink); font-family: var(--sp-head); font-size: 15px; line-height: 1.2; }
.visitor-row small { color: var(--sp-muted); }
.visitor-row .acts { margin-left: auto; display: flex; gap: .4rem; }
.a-ok, .a-no { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; }
.a-ok { background: #e2f7ee; color: var(--sp-green); }
.a-no { background: #fde8e9; color: var(--sp-red); }

.accordion { --bs-accordion-border-radius: 14px; --bs-accordion-inner-border-radius: 13px; }
.accordion-item { border: 1px solid var(--sp-line); border-radius: 14px; overflow: hidden; margin-bottom: .75rem; background: #fff; }
.accordion-item:not(:first-of-type) { border-top: 1px solid var(--sp-line); }
.accordion-button { font-family: var(--sp-head); font-weight: 700; font-size: 16px; color: var(--sp-ink); padding: 1.1rem 1.3rem; background: #fff; }
.accordion-button:not(.collapsed) { color: var(--sp-primary); background: var(--sp-primary-soft); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 3px rgba(91, 70, 240, .2); }
.accordion-body { padding: 1.1rem 1.3rem 1.3rem; }


/* ---------- 18. Contact page ---------- */
.contact-split { border: 1px solid var(--sp-line); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(37, 27, 130, .1); }
.contact-info { background: var(--sp-hero); color: #cfcdf5; padding: 44px 38px; height: 100%; }
.contact-info h2 { color: #fff; font-size: 27px; margin-bottom: .6rem; }
.ci-item { display: flex; gap: 1rem; margin-top: 1.7rem; }
.ci-item i { width: 44px; height: 44px; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; font-size: 18px; flex: none; }
.ci-item b { display: block; color: #fff; font-family: var(--sp-head); }
.ci-item a, .ci-item span { color: #cfcdf5; font-size: 15px; }
.ci-item a:hover { color: #fff; }
.contact-form { padding: 44px 40px; }
.contact-form h2 { font-size: 26px; margin-bottom: .25rem; }


/* ---------- 19. Footer and back-to-top ---------- */
.footer { background: var(--sp-navy); color: #a9a9c9; padding: 72px 0 0; }
.footer a { color: #a9a9c9; }
.footer a:hover { color: #fff; }
.footer .brand, .footer .brand:hover { color: #fff; margin-bottom: 1rem; }
.footer .brand-text small { color: #8888ad; }
.footer p { font-size: 14px; max-width: 340px; }
.footer-title { color: #fff; font-size: 16px; margin-bottom: 1.1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .6rem; font-size: 14px; }
.footer .contact-list li { display: flex; gap: .6rem; }
.footer .contact-list i { color: #8f80ff; margin-top: 3px; }
.footer .social a { width: 38px; height: 38px; border-radius: var(--r); background: rgba(255, 255, 255, .07); display: inline-grid; place-items: center; margin-right: .4rem; color: #fff; }
.footer .social a:hover { background: var(--sp-primary); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 52px; padding: 22px 0; font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.footer-bottom i { color: #ff6b81; }

.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: var(--r); border: 0; background: var(--sp-primary); color: #fff; font-size: 19px; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(91, 70, 240, .4); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 1040; }
.to-top.show { opacity: 1; pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
