/* =========================================
   BookingBe Blog Styles
   ========================================= */

:root {
  --bb-primary: #006BFF;
  --bb-primary-soft: #4b8dff;
  --bb-primary-dark: #003caa;
  --bb-bg: #f3f6fb;
  --bb-bg-soft: #eef3fb;
  --bb-text: #0f172a;
  --bb-muted: #6b7280;
  --bb-radius-xl: 26px;
  --bb-radius-lg: 18px;
  --bb-radius-md: 14px;
  --bb-radius-pill: 999px;
  --bb-shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.18);
  --bb-shadow-card: 0 16px 45px rgba(15, 23, 42, 0.12);

  --bb-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, #edf3ff 0%, #f5f7fb 30%, #eef2ff 100%);
  font-family: var(--bb-font);
  color: var(--bb-text);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: var(--bb-primary);
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

/* =========================================
   NAVIGATION
   ========================================= */
.bb-nav {
  position: sticky;
  top: 12px;
  z-index: 40;
  width: min(1200px, 100% - 32px);
  margin: 12px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-radius: var(--bb-radius-pill);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.bb-nav:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 40px rgba(31, 38, 135, 0.15);
}

.bb-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  text-decoration: none;
}

.bb-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.bb-nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.bb-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--bb-radius-pill);
  color: #475569;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.bb-nav-links a:hover {
  color: var(--bb-primary);
  background: rgba(37, 99, 235, 0.08);
}

.bb-nav-links a.active {
  color: #fff;
  background: var(--bb-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.bb-nav-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* =========================================
   HERO SECTION (Index Page)
   ========================================= */
.bb-hero {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 120px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f6ff 0%, #ffffff 100%);
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.05);
}

.bb-hero::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.bb-hero::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.bb-hero h1 {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: #020617;
  position: relative;
  z-index: 1;
}

.bb-hero p {
  font-size: 22px;
  color: var(--bb-muted);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.bb-hero-highlight {
  background: linear-gradient(120deg, #2563eb, #7c3aed, #ec4899);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* =========================================
   CATEGORIES (Index Page)
   ========================================= */
.bb-categories {
  max-width: 1200px;
  margin: -40px auto 60px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.bb-categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: var(--bb-radius-xl);
  box-shadow: var(--bb-shadow-soft);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.bb-category-tag {
  padding: 10px 24px;
  border-radius: var(--bb-radius-pill);
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.bb-category-tag:hover {
  background: var(--bb-primary);
  color: #fff;
  transform: translateY(-2px);
  border-color: var(--bb-primary);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

/* =========================================
   BLOG POST GRID (Index Page)
   ========================================= */
.bb-blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.bb-section-heading {
  font-size: 32px;
  font-weight: 800;
  margin: 60px 0 24px;
  color: #020617;
  letter-spacing: -0.02em;
  border-left: 5px solid var(--bb-primary);
  padding-left: 16px;
}

.bb-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.bb-post-card {
  background: #fff;
  border-radius: var(--bb-radius-lg);
  padding: 24px;
  box-shadow: var(--bb-shadow-card);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bb-post-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.1);
}

.bb-post-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #0f172a;
  line-height: 1.4;
  display: block;
}

.bb-post-card:hover .bb-post-title {
  color: var(--bb-primary);
}

.bb-post-meta {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--bb-muted);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.bb-post-meta::before {
  content: "•";
  color: var(--bb-primary);
  margin-right: 8px;
  font-weight: bold;
}

/* =========================================
   ARTICLE PAGE STYLES
   ========================================= */
.bb-blog-header {
  max-width: 1200px;
  margin: 60px auto 40px;
  padding: 0 24px;
  text-align: center;
}

.bb-breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--bb-muted);
  margin-bottom: 20px;
}

.bb-breadcrumb a {
  color: var(--bb-muted);
}

.bb-breadcrumb a:hover {
  color: var(--bb-primary);
}

.bb-breadcrumb span {
  color: var(--bb-muted);
}

.bb-article-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  color: #020617;
}

.bb-article-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--bb-muted);
  margin-bottom: 30px;
}

.bb-article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bb-featured-image {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

.bb-featured-image img {
  width: 100%;
  height: auto;
  border-radius: var(--bb-radius-lg);
  box-shadow: var(--bb-shadow-card);
}

.bb-article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.bb-article-content {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--bb-radius-xl);
  padding: 40px;
  box-shadow: var(--bb-shadow-soft);
  backdrop-filter: blur(20px);
}

.bb-article-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: #020617;
  line-height: 1.2;
}

.bb-article-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: #111827;
}

.bb-article-content p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 20px;
  color: var(--bb-text);
}

.bb-article-content ul,
.bb-article-content ol {
  margin: 20px 0;
  padding-left: 30px;
  font-size: 17px;
  line-height: 1.7;
}

.bb-article-content li {
  margin: 10px 0;
}

.bb-article-content strong {
  font-weight: 600;
  color: #020617;
}

.bb-article-content blockquote {
  border-left: 4px solid var(--bb-primary);
  padding-left: 24px;
  margin: 30px 0;
  font-style: italic;
  color: var(--bb-muted);
  font-size: 18px;
}

/* Call to Action Box */
.bb-cta-box {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border-radius: var(--bb-radius-lg);
  padding: 30px;
  margin: 40px 0;
  color: #fff;
  text-align: center;
}

.bb-cta-box h3 {
  color: #fff;
  margin-top: 0;
}

.bb-cta-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

.bb-cta-button {
  display: inline-block;
  padding: 12px 28px;
  background: #fff;
  color: var(--bb-primary);
  border-radius: var(--bb-radius-pill);
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.bb-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  opacity: 1;
}

/* Related Articles */
.bb-related {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
}

.bb-related-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #020617;
}

.bb-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.bb-related-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--bb-radius-lg);
  padding: 24px;
  box-shadow: var(--bb-shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(20px);
}

.bb-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bb-shadow-soft);
}

.bb-related-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #020617;
}

.bb-related-card p {
  font-size: 14px;
  color: var(--bb-muted);
  margin: 0;
  line-height: 1.5;
}

.bb-related-card a {
  color: inherit;
}

/* =========================================
   GENERIC PAGE STYLES (Legal Pages)
   ========================================= */
.bb-page-header {
  max-width: 800px;
  margin: 60px auto 40px;
  padding: 0 24px;
  text-align: center;
}

.bb-page-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 16px;
  color: #020617;
}

.bb-page-content {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.bb-content-box {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--bb-radius-xl);
  padding: 40px;
  box-shadow: var(--bb-shadow-soft);
  backdrop-filter: blur(20px);
}

.bb-content-box h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 30px 0 16px;
  color: #020617;
}

.bb-content-box p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 20px;
  color: var(--bb-text);
}

.bb-content-box ul {
  margin: 20px 0;
  padding-left: 20px;
}

.bb-content-box li {
  margin-bottom: 10px;
  color: var(--bb-text);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  margin-top: 100px;
  background: #0f172a;
  padding: 80px 24px 40px;
  color: #94a3b8;
  font-size: 14px;
}

.bb-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bb-footer-col h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.bb-footer-col p {
  line-height: 1.6;
  margin: 0 0 24px;
}

.bb-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bb-footer-links li {
  margin-bottom: 12px;
}

.bb-footer-links a {
  color: #94a3b8;
  transition: all 0.2s ease;
  text-decoration: none;
}

.bb-footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.bb-footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.bb-social-links {
  display: flex;
  gap: 16px;
}

.bb-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s ease;
}

.bb-social-link:hover {
  background: var(--bb-primary);
  transform: translateY(-2px);
}

.bb-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .bb-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    width: calc(100% - 24px);
    top: 12px;
  }

  .bb-logo {
    width: 100%;
    justify-content: center;
    margin-bottom: 4px;
  }

  .bb-nav-links {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .bb-nav-links a {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
  }

  .bb-blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bb-hero h1 {
    font-size: 36px;
  }

  .bb-hero p {
    font-size: 18px;
  }

  .bb-footer-container {
    gap: 40px;
  }

  .bb-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Article Page Responsive */
  .bb-article-content {
    padding: 24px;
  }

  .bb-article-content h2 {
    font-size: 24px;
  }

  .bb-article-content h3 {
    font-size: 20px;
  }

  .bb-article-content p {
    font-size: 16px;
  }
}

