/*
Theme Name: Vardhaman Dental Care - Blog
Theme URI: https://vardhamandentalcare.com/
Author: Dentfluence
Author URI: https://dentfluence.in
Description: Blog theme for Vardhaman Dental Care. Reuses the main site's stylesheet, header and footer so /blog looks identical to the rest of vardhamandentalcare.com. Dr. Vishal can add posts and upload images from wp-admin.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: vardhaman-blog
*/

/* The main site stylesheet (https://vardhamandentalcare.com/styles.css) is loaded first
   in functions.php and supplies every design token, the header, the footer, .page-hero,
   .blog-grid / .blog-card and .post styles. Everything below is blog-only additions. */

/* ---- search + filter + tags bar ---- */
.vb-controls { margin-bottom: 34px; }

.vb-search {
  display: flex; max-width: 520px; margin: 0 auto 22px;
  border: 1px solid var(--border); border-radius: 999px;
  overflow: hidden; background: #fff;
}
.vb-search input[type=search] {
  flex: 1; border: 0; outline: 0; padding: 13px 22px;
  font-size: 15px; font-family: 'DM Sans', sans-serif;
  color: var(--text); background: transparent;
}
.vb-search button {
  border: 0; background: var(--teal); color: #fff; font-weight: 600;
  font-size: 14px; padding: 0 26px; cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.vb-search button:hover { background: var(--teal-dark); }

.vb-filter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.vb-filter a {
  font-size: 14px; font-weight: 600; padding: 8px 20px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--gray-dark); background: #fff;
  text-decoration: none; transition: all .2s;
}
.vb-filter a:hover { border-color: var(--teal); color: var(--teal); }
.vb-filter a.active { background: var(--teal); border-color: var(--teal); color: #fff; }

.vb-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.vb-tags-label { font-size: 13px; font-weight: 600; color: var(--gray); margin-right: 4px; }
.vb-tags a {
  font-size: 13px; color: var(--teal-dark); background: var(--teal-light);
  border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px;
  text-decoration: none; transition: all .2s;
}
.vb-tags a:hover, .vb-tags a.active { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ---- card tweaks for WordPress output ---- */
.blog-card { text-decoration: none; display: block; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.blog-img .vb-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-family: 'Playfair Display', Georgia, serif; font-size: 40px;
  background: var(--teal-light);
}

/* ---- pagination ---- */
.vb-pagination { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 46px; }
.vb-pagination a, .vb-pagination span {
  padding: 9px 16px; border: 1px solid var(--border); border-radius: 8px;
  color: var(--gray-dark); text-decoration: none; font-size: 14px; background: #fff;
}
.vb-pagination .current { background: var(--teal); color: #fff; border-color: var(--teal); }

.vb-empty { text-align: center; padding: 60px 20px; color: var(--gray); }

/* ---- WordPress core block/editor output inside .post ---- */
.post img, .post iframe, .post video { max-width: 100%; height: auto; border-radius: var(--radius); }
.post figure { margin: 26px 0; }
.post figure img { display: block; width: 100%; }
.post figcaption { font-size: 13px; color: var(--gray); text-align: center; margin-top: 8px; }
.post .wp-block-embed__wrapper iframe { aspect-ratio: 16/9; width: 100%; height: auto; }
.post blockquote {
  margin: 26px 0; padding: 16px 22px; border-left: 4px solid var(--teal);
  background: var(--off-white); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16px; color: var(--gray-dark);
}
.post .alignleft { float: left; margin: 0 24px 16px 0; }
.post .alignright { float: right; margin: 0 0 16px 24px; }
.post .aligncenter { margin-left: auto; margin-right: auto; display: block; }
.post-hero-img img { width: 100%; height: auto; display: block; }
