/* =============================================================
   Tesplor — custom theme (sits on top of Bootstrap 5)
   Brand: teal / deep-green.  Mobile-first.
   ============================================================= */

:root {
  --ts-primary:      #0e7c7b;
  --ts-primary-dark: #0a5d5c;
  --ts-primary-soft: #e6f4f3;
  --ts-dark:         #0f2a2e;
  --ts-light:        #f3fbfb;
  --ts-muted:        #5b7176;
  --ts-border:       #dceaea;
  --ts-accent:       #f4a259;
  --ts-radius:       14px;
  --ts-shadow:       0 10px 30px rgba(15, 42, 46, .08);
  --ts-shadow-lg:    0 22px 60px rgba(15, 42, 46, .16);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ts-dark);
  background: var(--ts-light);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, .font-display {
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ts-dark);
}

a { color: var(--ts-primary); text-decoration: none; }
a:hover { color: var(--ts-primary-dark); }

.text-primary-ts { color: var(--ts-primary) !important; }
.bg-primary-ts   { background: var(--ts-primary) !important; color: #fff; }
.bg-soft-ts       { background: var(--ts-primary-soft) !important; }

/* ---------- Navbar ---------- */
.navbar.ts-nav {
  background: rgba(243, 251, 251, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ts-border);
}
.navbar.ts-nav .navbar-brand {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--ts-dark);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.navbar.ts-nav .navbar-brand .brand-logo {
  width: 32px; height: 32px; border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--ts-primary-soft);
}
.navbar.ts-nav .nav-link {
  color: var(--ts-dark);
  font-weight: 500;
  margin: 0 .15rem;
  padding: .5rem .9rem !important;
  border-radius: 8px;
}
.navbar.ts-nav .nav-link:hover,
.navbar.ts-nav .nav-link.active {
  color: var(--ts-primary);
  background: var(--ts-primary-soft);
}

/* ---------- Buttons ---------- */
.btn-ts {
  background: var(--ts-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  padding: .7rem 1.4rem;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn-ts:hover { background: var(--ts-primary-dark); color: #fff; transform: translateY(-1px); }
.btn-ts:active { transform: translateY(0); }
.btn-outline-ts {
  background: transparent;
  color: var(--ts-primary);
  border: 1.5px solid var(--ts-primary);
  border-radius: 10px;
  font-weight: 600;
  padding: .65rem 1.35rem;
  transition: all .2s ease;
}
.btn-outline-ts:hover { background: var(--ts-primary); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(14,124,123,.18), transparent 60%),
    linear-gradient(180deg, var(--ts-primary-soft), var(--ts-light) 70%);
  padding: 6rem 0 5rem;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--ts-border);
  color: var(--ts-primary); font-weight: 600; font-size: .85rem;
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.2rem;
  box-shadow: var(--ts-shadow);
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.05; }
.hero .lead { color: var(--ts-muted); font-size: 1.15rem; max-width: 36rem; }
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(8px); opacity: .5;
  pointer-events: none;
}
.hero-blob.one { width: 320px; height: 320px; background: var(--ts-primary); top: -80px; right: -60px; opacity: .12; }
.hero-blob.two { width: 220px; height: 220px; background: var(--ts-accent); bottom: -90px; left: 10%; opacity: .14; }

/* ---------- Cards / grids ---------- */
.ts-card {
  background: #fff;
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ts-card:hover { transform: translateY(-4px); box-shadow: var(--ts-shadow-lg); border-color: var(--ts-primary); }
.ts-card .thumb {
  aspect-ratio: 16 / 10;
  background: var(--ts-primary-soft);
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--ts-border);
}
.ts-card .card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.ts-card h3 { font-size: 1.2rem; margin: 0; }
.ts-card p  { color: var(--ts-muted); margin: 0; font-size: .95rem; flex: 1; }
.ts-card .card-link { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .35rem; }

.section { padding: 4rem 0; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .5rem; }
.section-sub   { color: var(--ts-muted); max-width: 40rem; }

/* ---------- Blog ---------- */
.blog-meta { color: var(--ts-muted); font-size: .85rem; }
.blog-content { line-height: 1.75; color: #243b3f; }
.blog-content h2, .blog-content h3 { margin-top: 1.6rem; }
.blog-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 1rem 0; }
.blog-content p { margin-bottom: 1rem; }
.blog-content ul, .blog-content ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.blog-content blockquote {
  border-left: 4px solid var(--ts-primary);
  padding: .5rem 1rem; color: var(--ts-muted); background: var(--ts-primary-soft);
  border-radius: 0 8px 8px 0; margin: 1rem 0;
}

/* ---------- Contact ---------- */
.form-card {
  background: #fff; border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius); padding: 2rem; box-shadow: var(--ts-shadow);
}
.form-label { font-weight: 600; color: var(--ts-dark); }
.form-control, .form-select {
  border-radius: 10px; border-color: var(--ts-border); padding: .7rem .9rem;
}
.form-control:focus { border-color: var(--ts-primary); box-shadow: 0 0 0 .2rem rgba(14,124,123,.15); }

/* ---------- Footer ---------- */
.ts-footer {
  margin-top: auto;
  background: var(--ts-dark);
  color: #cfe3e2;
  padding: 3rem 0 1.5rem;
}
.ts-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.ts-footer a { color: #cfe3e2; }
.ts-footer a:hover { color: #fff; }
.ts-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: #9bb4b2;
}

/* ---------- Admin ---------- */
.admin-body { background: #f4f7f7; }
.admin-topbar {
  background: var(--ts-dark); color: #fff;
  padding: .9rem 0; position: sticky; top: 0; z-index: 1020;
}
.admin-topbar .brand { font-family: "Sora", sans-serif; font-weight: 800; color: #fff; }
.admin-card {
  background: #fff; border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius); box-shadow: var(--ts-shadow);
}
.admin-list-item {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1rem; border-bottom: 1px solid var(--ts-border);
}
.admin-list-item:last-child { border-bottom: none; }
.admin-list-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.badge-soft { background: var(--ts-primary-soft); color: var(--ts-primary-dark); font-weight: 600; }
.badge-muted-ts { background: #eef2f2; color: var(--ts-muted); font-weight: 600; }

/* ---------- States ---------- */
.state-msg { color: var(--ts-muted); text-align: center; padding: 2rem; }
.spinner-border.text-ts { color: var(--ts-primary); }
.alert-ts-success { background: var(--ts-primary-soft); color: var(--ts-primary-dark); border: 1px solid #bfe3e1; border-radius: 10px; }

/* Quill editor sizing */
#editor-container { min-height: 220px; }
.ql-toolbar, .ql-container { border-color: var(--ts-border) !important; }
.ql-container { border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
