
/**
 * Sofia Implant Centre - Blog Layout
 * Clean build matching the Figma design exactly.
 */

/* ==========================================================================
   Container
   ========================================================================== */
.sic-blog {
	padding: 30px 0 60px;
}

.sic-blog__title {
	font-size: 32px;
	font-weight: 700;
	color: #000;
	margin: 0 0 25px;
}

.sic-blog__container {
	max-width: 1132px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ==========================================================================
   Search
   ========================================================================== */
.sic-blog__search {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
}

.sic-blog__search-input {
	width: 100%;
	padding: 10px 44px 10px 16px;
	border: 2px solid #00afc5;
	border-radius: 24.5px;
	background: #fff;
	color: #000;
	font-size: 15px;
	line-height: 1.2;
	outline: none;
	transition: box-shadow .2s ease;
}

.sic-blog__search-input:focus {
	box-shadow: 0 0 0 3px rgba(0, 175, 197, .2);
}

.sic-blog__search-input::placeholder {
	color: #8a8a8a;
}

.sic-blog__search-btn {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #00afc5;
	color: #fff;
	cursor: pointer;
	padding: 0;
	transition: background .2s ease;
}

.sic-blog__search-btn:hover {
	background: #008fa3;
}

/* ==========================================================================
   Category Filters
   ========================================================================== */
.sic-blog__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
}

.sic-blog__filter {
	display: inline-block;
	padding: 8px 28px;
	border-radius: 24.5px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	border: 2px solid #00afc5;
	color: #00afc5;
	background: transparent;
	transition: all .2s ease;
}

.sic-blog__filter:hover {
	background: #00afc5;
	color: #fff;
	text-decoration: none;
}

.sic-blog__filter--active {
	background: #00afc5;
	color: #fff;
}

/* ==========================================================================
   Two-column Layout: posts + sidebar
   ========================================================================== */
.sic-blog__layout {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 40px;
	align-items: start;
}

/* A grid (and flex) "1fr" track has an implicit min-width:auto, so wide content
   — iframes, figures, the TrustIndex widget — can force the posts column wider
   than the viewport and break the layout. min-width:0 lets the column shrink. */
.sic-blog__posts {
	min-width: 0;
}

/* Belt-and-braces: keep any embedded media inside the content column.
   .post-teaser is the wrapper around the_content() on single posts. */
.sic-blog__posts img, .sic-blog__posts figure, .sic-blog__posts iframe, .sic-blog__posts video, .sic-blog__posts embed, .sic-blog__posts object, .sic-blog__posts .ti-widget, .sic-blog__posts [class*="trustindex"] {
	max-width: 100%;
}

.sic-blog__posts figure {
	height: auto;
	margin-inline: 0;
}

.sic-blog__posts iframe {
	width: 100%;
}

/* Final safety net for any long unbreakable strings / odd embeds. */
.sic-blog__posts .post-teaser {
	overflow-wrap: break-word;
}

/* ==========================================================================
   Blog Card
   ========================================================================== */
.sic-blog-card {
	display: grid;
	grid-template-columns: 240px 1fr;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 20px;
	overflow: hidden;
	margin-bottom: 20px;
}

/* ---------- Thumbnail (left) ---------- */
.sic-blog-card__thumb {
	padding: 16px;
}

.sic-blog-card__thumb a {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 12px;
	overflow: hidden;
}

.sic-blog-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sic-blog-card__no-image {
	width: 100%;
	height: 100%;
	min-height: 140px;
	background: #e8e8e8;
	border-radius: 12px;
}

/* ---------- Body (right) ---------- */
.sic-blog-card__body {
	padding: 20px 20px 20px 0;
	display: flex;
	flex-direction: column;
}

/* Header: title + date badge */
.sic-blog-card__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 15px;
	margin-bottom: 12px;
}

/* Title */
.sic-blog-card__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	flex: 1;
}

.sic-blog-card__title a {
	color: #000;
	text-decoration: none;
}

.sic-blog-card__title a:hover {
	color: #00afc5;
}

/* Date badge — teal circle */
.sic-blog-card__date {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	background: #00afc5;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.sic-blog-card__day {
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.sic-blog-card__month {
	font-size: 11px;
	font-weight: 400;
	text-transform: lowercase;
	line-height: 1;
	margin-top: 1px;
}

/* Excerpt */
.sic-blog-card__excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: #000;
	flex: 1;
	margin-bottom: 12px;
}

/* Read more link */
.sic-blog-card__more {
	color: #00afc5;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
}

.sic-blog-card__more:hover {
	color: #0097aa;
	text-decoration: none;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.sic-blog__pagination {
	margin-top: 30px;
	text-align: center;
}

.sic-blog__pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.sic-blog__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 16px;
	font-weight: 600;
	color: #000;
	text-decoration: none;
	border: 1px solid #e0e0e0;
	transition: all .2s ease;
}

.sic-blog__pagination .page-numbers.current, .sic-blog__pagination .page-numbers:hover {
	background: #00afc5;
	color: #fff;
	border-color: #00afc5;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sic-blog__sidebar {
	font-size: 14px;
}

.sic-sidebar__widget {
	margin-bottom: 35px;
}

.sic-sidebar__widget h3 {
	font-size: 22px;
	font-weight: 700;
	font-style: italic;
	color: #000;
	margin: 0 0 15px;
}

/* ---------- Recent Posts ---------- */
.sic-sidebar__recent {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid #eee;
}

.sic-sidebar__recent:last-child {
	border-bottom: none;
}

.sic-sidebar__recent-thumb {
	flex-shrink: 0;
	width: 55px;
	height: 55px;
	border-radius: 50%;
	overflow: hidden;
}

.sic-sidebar__recent-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sic-sidebar__recent-text {
	flex: 1;
	min-width: 0;
}

.sic-sidebar__recent-title {
	display: block;
	color: #000;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.4;
	margin-bottom: 4px;
}

.sic-sidebar__recent-title:hover {
	color: #00afc5;
}

.sic-sidebar__recent-date {
	display: block;
	font-size: 12px;
	color: #999;
}

/* ---------- Categories ---------- */
.sic-sidebar__categories {
	list-style: disc;
	padding-left: 20px;
	margin: 0;
}

.sic-sidebar__categories li {
	margin-bottom: 6px;
	font-size: 14px;
	color: #00afc5;
}

.sic-sidebar__categories li::marker {
	color: #00afc5;
}

.sic-sidebar__categories a {
	color: #000;
	text-decoration: none;
}

.sic-sidebar__categories a:hover {
	color: #00afc5;
}

/* ---------- Tags ---------- */
.sic-sidebar__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.sic-sidebar__tags a {
	display: inline-block;
	padding: 5px 14px;
	border: none;
	border-radius: 4px;
	font-size: 13px;
	color: #000;
	text-decoration: none;
	background: #f8f8f8;
	transition: all .2s ease;
	white-space: nowrap;
}

.sic-sidebar__tags a:hover {
	background: #00afc5;
	color: #fff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991px) {
	.sic-blog__layout {
		grid-template-columns: 1fr;
	}
	
	.sic-blog__sidebar {
		margin-top: 40px;
	}
}

@media (max-width: 600px) {
	.sic-blog-card {
		grid-template-columns: 1fr;
	}
	
	.sic-blog-card__thumb {
		height: 200px;
	}
	
	.sic-blog-card__body {
		padding: 0 16px 16px;
	}
	
	.sic-blog__filter {
		font-size: 14px;
		padding: 6px 18px;
	}
}

/* ==========================================================================
   WPBakery video-testimonial grids pasted inside post content
   (5 × [vc_column width="1/5"] of stacked [vc_video]) render as cramped,
   overlapping tiles in the narrow article column. Reflow them into a
   responsive grid instead.
   ========================================================================== */
.sic-blog__posts .vc_row:has(> .vc_col-sm-1\/5) {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	margin: 24px 0;
}

.sic-blog__posts .vc_row:has(> .vc_col-sm-1\/5) > .vc_col-sm-1\/5, .sic-blog__posts .vc_row:has(> .vc_col-sm-1\/5) > .vc_col-sm-1\/5 > .vc_column-inner, .sic-blog__posts .vc_row:has(> .vc_col-sm-1\/5) > .vc_col-sm-1\/5 > .vc_column-inner > .wpb_wrapper {
	display: contents;
}

.sic-blog__posts .vc_row:has(> .vc_col-sm-1\/5) .wpb_video_widget {
	margin: 0;
	width: 100%;
}

.sic-blog__posts .vc_row:has(> .vc_col-sm-1\/5) .wpb_video_wrapper {
	border-radius: 8px;
	overflow: hidden;
}

/* Clearfix pseudo-elements on the flattened row/columns would otherwise
   become empty grid cells — suppress them. */
.sic-blog__posts .vc_row:has(> .vc_col-sm-1\/5)::before, .sic-blog__posts .vc_row:has(> .vc_col-sm-1\/5)::after, .sic-blog__posts .vc_row:has(> .vc_col-sm-1\/5) > .vc_col-sm-1\/5::before, .sic-blog__posts .vc_row:has(> .vc_col-sm-1\/5) > .vc_col-sm-1\/5::after, .sic-blog__posts .vc_row:has(> .vc_col-sm-1\/5) > .vc_col-sm-1\/5 > .vc_column-inner::before, .sic-blog__posts .vc_row:has(> .vc_col-sm-1\/5) > .vc_col-sm-1\/5 > .vc_column-inner::after, .sic-blog__posts .vc_row:has(> .vc_col-sm-1\/5) > .vc_col-sm-1\/5 > .vc_column-inner > .wpb_wrapper::before, .sic-blog__posts .vc_row:has(> .vc_col-sm-1\/5) > .vc_col-sm-1\/5 > .vc_column-inner > .wpb_wrapper::after {
	display: none;
}

/* =================================================================
   Request a Call — footer button + popup
   ================================================================= */

/* Footer button (sits in the column under the logo) */
.sic-footer-call {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.sic-request-call-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	color: #2dacc2;
	border: 1px solid #fff;
	padding: 14px 32px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	border-radius: 30px;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, transform .2s ease;
	text-transform: uppercase;
	letter-spacing: .5px;
}

.sic-request-call-btn:hover, .sic-request-call-btn:focus {
	background: #2dacc2;
	color: #fff;
	border-color: #2dacc2;
	outline: none;
}

@media (max-width: 991px) {
	.sic-footer-call {
		margin-top: 16px;
	}
}

/* Popup */
.sic-call-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
}

.sic-call-popup.is-open {
	display: flex;
}

.sic-call-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .55);
}

.sic-call-popup__dialog {
	position: relative;
	background: #fff;
	border-radius: 12px;
	padding: 36px 32px 28px;
	width: 100%;
	max-width: 420px;
	margin: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	text-align: center;
	z-index: 1;
	box-sizing: border-box;
}

.sic-call-popup__close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #444;
	cursor: pointer;
	padding: 4px 8px;
}

.sic-call-popup__close:hover {
	color: #000;
}

.sic-call-popup__title {
	font-size: 24px;
	margin: 0 0 8px;
	color: #111;
	font-weight: 700;
}

.sic-call-popup__subtitle {
	font-size: 14px;
	color: #666;
	margin: 0 0 20px;
	line-height: 1.4;
}

.sic-call-popup__input {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #d5d5d5;
	border-radius: 6px;
	font-size: 15px;
	margin-bottom: 14px;
	box-sizing: border-box;
	outline: none;
	transition: border-color .2s ease;
	background: #fff;
	color: #222;
}

.sic-call-popup__input:focus {
	border-color: #2dacc2;
}

.sic-call-popup__submit {
	width: 100%;
	background: #00afc5;
	color: #fff;
	border: none;
	padding: 13px 20px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 30px;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: .5px;
	transition: background .2s ease;
}

.sic-call-popup__submit:hover, .sic-call-popup__submit:focus {
	background: #008fa3;
	outline: none;
}

.sic-call-popup__submit[disabled] {
	opacity: .6;
	cursor: not-allowed;
}

.sic-call-popup__message {
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.4;
	min-height: 18px;
}

.sic-call-popup__message.is-error {
	color: #c0392b;
}

.sic-call-popup__message.is-success {
	color: #16a34a;
}

/* ==========================================================================
   International tel field with country selector
   ========================================================================== */
.sic-tel-field {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
	margin-bottom: 14px;
	border: 1px solid #d5d5d5;
	border-radius: 6px;
	background: #fff;
	transition: border-color .2s ease;
}

.sic-tel-field:focus-within {
	border-color: #2dacc2;
}

.sic-tel-field .sic-call-popup__input, .sic-tel-field .sic-tel-field__phone {
	flex: 1 1 auto;
	border: 0;
	border-radius: 0 6px 6px 0;
	margin: 0;
	padding: 12px 14px;
	background: transparent;
	font-size: 15px;
	color: #222;
	outline: none;
	min-width: 0;
}

.sic-tel-field__trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 12px;
	border: 0;
	border-right: 1px solid #e3e3e3;
	border-radius: 6px 0 0 6px;
	background: #f7f9fb;
	color: #222;
	font-size: 14px;
	cursor: pointer;
	flex: 0 0 auto;
	line-height: 1;
	height: auto;
	transition: background .15s ease;
}

.sic-tel-field__trigger:hover, .sic-tel-field__trigger:focus {
	background: #eef3f6;
	outline: none;
}

.sic-tel-field__flag {
	font-size: 20px;
	line-height: 1;
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
}

.sic-tel-field__dial {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: #222;
}

.sic-tel-field__caret {
	color: #888;
	margin-left: 2px;
	flex-shrink: 0;
}

.sic-tel-field__dropdown {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	width: min(360px, 100%);
	max-height: 320px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
	z-index: 10;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.sic-tel-field__dropdown[hidden] {
	display: none;
}

.sic-tel-field__search-wrap {
	padding: 10px;
	border-bottom: 1px solid #eee;
	background: #fafafa;
}

.sic-tel-field__search {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 12px;
	border: 1px solid #d5d5d5;
	border-radius: 5px;
	font-size: 14px;
	outline: none;
	background: #fff;
	color: #222;
}

.sic-tel-field__search:focus {
	border-color: #2dacc2;
}

.sic-tel-field__list {
	list-style: none;
	margin: 0;
	padding: 4px 0;
	overflow-y: auto;
	max-height: 240px;
	flex: 1 1 auto;
}

.sic-tel-field__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	cursor: pointer;
	font-size: 14px;
	color: #222;
	line-height: 1.2;
}

.sic-tel-field__item.is-active, .sic-tel-field__item:hover {
	background: #eef7f9;
}

.sic-tel-field__item.is-selected {
	background: #d8f0f4;
	font-weight: 600;
}

.sic-tel-field__item-flag {
	font-size: 18px;
	line-height: 1;
	width: 22px;
	text-align: center;
	flex-shrink: 0;
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
}

.sic-tel-field__item-name {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sic-tel-field__item-dial {
	color: #777;
	font-variant-numeric: tabular-nums;
	flex-shrink: 0;
	font-weight: normal;
}

.sic-tel-field__empty {
	padding: 16px;
	text-align: center;
	color: #888;
	font-size: 14px;
	margin: 0;
}

@media (max-width: 480px) {
	.sic-tel-field__dropdown {
		width: 100%;
	}
}

body.sic-call-popup-open {
	overflow: hidden;
}
