/*
Theme Name: Dr. Madhurjya Dark
Theme URI: https://drmadhurjyaimplant.com/
Author: Dr. Madhurjya Implants
Description: High-performance clinical dark theme for Dr. Madhurjya Borgohain BDS Implantology practice.
Version: 1.0.0
*/

:root {
  --bg: #0B1220;
  --bg-2: #0F1B33;
  --panel: #11203C;
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --blue: #3B82F6;
  --blue-bright: #5AA0FF;
  --cyan: #67D3FF;
  --text: #EAF1FB;
  --text-body: #D8E2F0;
  --muted: #9DB0CC;
  --display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 12px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 32px); }

/* HEADER */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(20px, 5vw, 32px);
  max-width: var(--maxw);
  margin: 0 auto;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
}
.site-logo .mark {
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.site-logo .mark img {
  height: 100%;
  width: auto;
  max-height: 34px;
  object-fit: contain;
}
.site-logo span.sub {
  display: block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.62rem;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}
.header-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
}
.header-links a { color: var(--muted); transition: color 0.25s; }
.header-links a:hover { color: var(--text); }
.header-links a.active { color: var(--cyan); }
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), #2563EB);
  color: #fff !important;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
  transition: transform 0.25s var(--ease), background 0.25s;
}
.btn-cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
}

/* HERO SECTION */
.blog-hero {
  padding: 70px 0 45px;
  border-bottom: 1px solid var(--line-soft);
  background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.16), transparent 70%);
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumbs a { color: var(--cyan); }
.breadcrumbs a:hover { text-decoration: underline; }
.kicker {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 12px;
}
.blog-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.8px;
  max-width: 26ch;
}
.blog-hero p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 65ch;
  line-height: 1.65;
}

/* POSTS GRID */
.blog-section { padding: 60px 0 90px; }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.article-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
.card-thumb-wrap {
  width: 100%;
  height: 190px;
  background: #080E1A;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.article-card:hover .card-thumb { transform: scale(1.04); }
.card-content {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-tag {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 12px;
}
.article-card h2 {
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--text);
}
.article-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  margin-top: 20px;
  padding-top: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}
.article-meta .read-more {
  font-family: var(--display);
  font-weight: 600;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.25s, color 0.25s;
}
.article-card:hover .read-more {
  gap: 8px;
  color: var(--blue-bright);
}

/* SINGLE POST VIEW */
.single-post-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 50px clamp(20px, 4vw, 36px) 90px;
}
.single-header { margin-bottom: 36px; }
.single-banner-img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 28px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.single-header h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.author-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}
.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  object-fit: cover;
}
.author-info b { color: var(--text); display: block; font-size: 0.94rem; }

/* POST CONTENT TYPOGRAPHY */
.entry-content {
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.8;
}
.entry-content p { margin-bottom: 22px; }
.entry-content h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin: 42px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.entry-content h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--cyan);
  margin: 28px 0 12px;
}
.entry-content ul {
  margin: 0 0 24px 24px;
  color: var(--text-body);
}
.entry-content li {
  margin-bottom: 10px;
  line-height: 1.65;
}
.entry-content li strong { color: #fff; }

.entry-content figure {
  margin: 34px 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
}
.entry-content figure img {
  width: 100%;
  height: auto;
  border-radius: 0;
}
.entry-content figure figcaption {
  padding: 12px 18px;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  background: rgba(8, 14, 26, 0.7);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

/* CTA BOX & DISCLAIMER */
.single-cta-box {
  margin-top: 45px;
  padding: 34px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.20), rgba(103, 211, 255, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.35);
  text-align: center;
}
.single-cta-box h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 8px;
}
.single-cta-box p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 50ch;
  margin: 0 auto 20px;
}

/* FOOTER */
footer.site-footer {
  background: #080E1A;
  border-top: 1px solid var(--line-soft);
  padding: 50px 0 24px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
  font-size: 0.8rem;
  text-align: center;
}

/* RESPONSIVE & MOBILE POLISH */
@media (max-width: 960px) {
  .articles-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
  .header-links a:not(.btn-cta) { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .blog-hero { padding: 50px 0 35px; }
  .blog-hero h1 { font-size: clamp(1.8rem, 6.5vw, 2.4rem); }
  .single-header h1 { font-size: clamp(1.65rem, 6vw, 2.2rem); }
  .single-cta-box { padding: 26px 18px; text-align: center; }
  .single-cta-box .btn-cta { width: 100%; height: 48px; min-height: 48px; box-sizing: border-box; justify-content: center; border-radius: 10px; }
  .author-bar { flex-wrap: wrap; }
}

/* MOBILE FLOATING ACTION BAR */
.mobile-action-bar { display: none; }
@media (max-width: 880px) {
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom, 10px));
    background: rgba(11, 18, 32, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
  }
  .mob-act-btn {
    flex: 1;
    height: 48px;
    min-height: 48px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 10px;
    font-family: var(--display);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    touch-action: manipulation;
  }
  .mob-act-btn.mob-wa {
    background: #25D366;
    color: #061A0E !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
  }
  .mob-act-btn.mob-wa:hover { background: #2ee672; }
  .mob-act-btn.mob-book {
    background: linear-gradient(135deg, var(--blue), #2563EB);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  }
  .mob-act-btn.mob-book:hover {
    background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  }
}

