/**
 * Best Gastrologist Page Template Styles
 * 
 * Styles for dynamic Best Gastrologist pages
 * Includes proper styling for h1, h2, h3, h4, p, and a tag link hover
 * 
 * @package SN_Gastro
 */

/* ============================================
   Hero Section
   ============================================ */
.best-gastrologist-hero {
	min-height: 400px;
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, #0e6b8f 0%, #1a52a3 100%);
	position: relative;
	overflow: hidden;
}

.best-gastrologist-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
	opacity: 0.3;
}

.best-gastrologist-hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(14, 107, 143, 0.95) 0%, rgba(26, 82, 163, 0.95) 100%);
	z-index: 1;
}

.best-gastrologist-hero .container {
	position: relative;
	z-index: 2;
}

.best-gastrologist-hero-title {
	font-size: 3rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 1.5rem;
	line-height: 1.2;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
	.best-gastrologist-hero-title {
		font-size: 2rem;
	}
}

/* Breadcrumbs */
.best-gastrologist-breadcrumbs {
	margin-top: 1.5rem;
}

.best-gastrologist-breadcrumbs .breadcrumb {
	background: transparent;
	padding: 0;
}

.best-gastrologist-breadcrumbs .breadcrumb-item {
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.95rem;
}

.best-gastrologist-breadcrumbs .breadcrumb-item a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	transition: color 0.3s ease;
}

.best-gastrologist-breadcrumbs .breadcrumb-item a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.best-gastrologist-breadcrumbs .breadcrumb-item.active {
	color: #ffffff;
	font-weight: 500;
}

.best-gastrologist-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
	color: rgba(255, 255, 255, 0.6);
	content: ">";
	padding: 0 0.5rem;
}

/* ============================================
   Main Content Area
   ============================================ */
.best-gastrologist-content-wrapper {
	padding: 4rem 0;
	background-color: #f8f9fa;
}

.best-gastrologist-article {
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
	padding: 3rem;
	margin-top: -3rem;
	position: relative;
	z-index: 3;
}

@media (max-width: 768px) {
	.best-gastrologist-article {
		padding: 2rem 1.5rem;
		margin-top: -2rem;
	}
}

.best-gastrologist-featured-image {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.best-gastrologist-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* ============================================
   Typography - Headings
   ============================================ */

/* H1 Styling */
.best-gastrologist-content h1 {
	font-size: 2.5rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-top: 2rem;
	margin-bottom: 1.5rem;
	line-height: 1.3;
	letter-spacing: -0.5px;
}

.best-gastrologist-content h1:first-child {
	margin-top: 0;
}

@media (max-width: 768px) {
	.best-gastrologist-content h1 {
		font-size: 2rem;
	}
}

/* H2 Styling */
.best-gastrologist-content h2 {
	font-size: 2rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-top: 2.5rem;
	margin-bottom: 1.25rem;
	line-height: 1.4;
	letter-spacing: -0.3px;
	position: relative;
	padding-bottom: 0.75rem;
}

.best-gastrologist-content h2:first-child {
	margin-top: 0;
}

.best-gastrologist-content h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 60px;
	height: 3px;
	background: linear-gradient(90deg, #0e6b8f 0%, #1a52a3 100%);
	border-radius: 2px;
}

@media (max-width: 768px) {
	.best-gastrologist-content h2 {
		font-size: 1.75rem;
	}
}

/* H3 Styling */
.best-gastrologist-content h3 {
	font-size: 1.5rem;
	font-weight: 600;
	color: #2c2c2c;
	margin-top: 2rem;
	margin-bottom: 1rem;
	line-height: 1.5;
}

@media (max-width: 768px) {
	.best-gastrologist-content h3 {
		font-size: 1.25rem;
	}
}

/* H4 Styling */
.best-gastrologist-content h4 {
	font-size: 1.25rem;
	font-weight: 600;
	color: #3a3a3a;
	margin-top: 1.5rem;
	margin-bottom: 0.875rem;
	line-height: 1.5;
}

@media (max-width: 768px) {
	.best-gastrologist-content h4 {
		font-size: 1.125rem;
	}
}

/* ============================================
   Typography - Paragraphs
   ============================================ */
.best-gastrologist-content p {
	font-size: 1.0625rem;
	line-height: 1.8;
	color: #4a4a4a;
	margin-bottom: 1.5rem;
	font-weight: 400;
}

.best-gastrologist-content p:last-child {
	margin-bottom: 0;
}

/* ============================================
   Links (a tags) with Hover Effects
   ============================================ */
.best-gastrologist-content a {
	color: #0e6b8f;
	text-decoration: none;
	transition: all 0.3s ease;
	font-weight: 500;
	border-bottom: 1px solid transparent;
	padding-bottom: 2px;
}

.best-gastrologist-content a:hover,
.best-gastrologist-content a:focus {
	color: #1a52a3;
	border-bottom-color: #1a52a3;
	text-decoration: none;
	transform: translateY(-1px);
}

.best-gastrologist-content a:active {
	color: #0a4f6e;
	transform: translateY(0);
}

/* Links in headings */
.best-gastrologist-content h1 a,
.best-gastrologist-content h2 a,
.best-gastrologist-content h3 a,
.best-gastrologist-content h4 a {
	color: inherit;
	border-bottom: none;
	transition: color 0.3s ease;
}

.best-gastrologist-content h1 a:hover,
.best-gastrologist-content h2 a:hover,
.best-gastrologist-content h3 a:hover,
.best-gastrologist-content h4 a:hover {
	color: #0e6b8f;
	border-bottom: 2px solid #0e6b8f;
	transform: none;
}

/* ============================================
   Lists
   ============================================ */
.best-gastrologist-content ul,
.best-gastrologist-content ol {
	margin-bottom: 1.5rem;
	padding-left: 2rem;
}

.best-gastrologist-content ul {
	list-style-type: disc;
}

.best-gastrologist-content ol {
	list-style-type: decimal;
}

.best-gastrologist-content li {
	font-size: 1.0625rem;
	line-height: 1.8;
	color: #4a4a4a;
	margin-bottom: 0.75rem;
}

.best-gastrologist-content li a {
	color: #0e6b8f;
}

.best-gastrologist-content li a:hover {
	color: #1a52a3;
}

/* Nested lists */
.best-gastrologist-content ul ul,
.best-gastrologist-content ol ol,
.best-gastrologist-content ul ol,
.best-gastrologist-content ol ul {
	margin-top: 0.75rem;
	margin-bottom: 0.75rem;
}

/* ============================================
   Images
   ============================================ */
.best-gastrologist-content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin: 2rem 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.best-gastrologist-content img.alignleft {
	float: left;
	margin-right: 2rem;
	margin-bottom: 1.5rem;
}

.best-gastrologist-content img.alignright {
	float: right;
	margin-left: 2rem;
	margin-bottom: 1.5rem;
}

.best-gastrologist-content img.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* ============================================
   Blockquotes
   ============================================ */
.best-gastrologist-content blockquote {
	border-left: 4px solid #0e6b8f;
	padding-left: 1.5rem;
	margin: 2rem 0;
	font-style: italic;
	color: #5a5a5a;
	background-color: #f8f9fa;
	padding: 1.5rem;
	border-radius: 4px;
}

.best-gastrologist-content blockquote p {
	margin-bottom: 0.5rem;
}

.best-gastrologist-content blockquote p:last-child {
	margin-bottom: 0;
}

/* ============================================
   Tables
   ============================================ */
.best-gastrologist-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 2rem 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.best-gastrologist-content table th,
.best-gastrologist-content table td {
	padding: 1rem;
	border: 1px solid #e0e0e0;
	text-align: left;
}

.best-gastrologist-content table th {
	background-color: #0e6b8f;
	color: #ffffff;
	font-weight: 600;
}

.best-gastrologist-content table tr:nth-child(even) {
	background-color: #f8f9fa;
}

.best-gastrologist-content table tr:hover {
	background-color: #e8f4f8;
}

/* ============================================
   Code & Pre
   ============================================ */
.best-gastrologist-content code {
	background-color: #f4f4f4;
	padding: 0.2rem 0.4rem;
	border-radius: 3px;
	font-size: 0.9em;
	color: #d63384;
}

.best-gastrologist-content pre {
	background-color: #2d2d2d;
	color: #f8f8f2;
	padding: 1.5rem;
	border-radius: 6px;
	overflow-x: auto;
	margin: 2rem 0;
}

.best-gastrologist-content pre code {
	background-color: transparent;
	color: inherit;
	padding: 0;
}

/* ============================================
   Page Links (Pagination)
   ============================================ */
.best-gastrologist-page-links {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #e0e0e0;
}

.best-gastrologist-page-links .page-number {
	display: inline-block;
	padding: 0.5rem 1rem;
	margin: 0 0.25rem;
	background-color: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	color: #0e6b8f;
	text-decoration: none;
	transition: all 0.3s ease;
}

.best-gastrologist-page-links .page-number:hover {
	background-color: #0e6b8f;
	color: #ffffff;
	border-color: #0e6b8f;
}

/* ============================================
   Entry Footer
   ============================================ */
.best-gastrologist-entry-footer {
	padding-top: 2rem;
	border-top: 1px solid #e0e0e0;
}

.best-gastrologist-entry-footer .edit-link a {
	color: #6c757d;
	font-size: 0.9rem;
}

.best-gastrologist-entry-footer .edit-link a:hover {
	color: #0e6b8f;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 992px) {
	.best-gastrologist-content-wrapper {
		padding: 3rem 0;
	}
}

@media (max-width: 768px) {
	.best-gastrologist-content-wrapper {
		padding: 2rem 0;
	}
	
	.best-gastrologist-content p {
		font-size: 1rem;
	}
	
	.best-gastrologist-content img.alignleft,
	.best-gastrologist-content img.alignright {
		float: none;
		margin-left: 0;
		margin-right: 0;
		display: block;
		margin: 1.5rem auto;
	}
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
	.best-gastrologist-hero {
		background: #ffffff;
		color: #000000;
	}
	
	.best-gastrologist-hero-title {
		color: #000000;
	}
	
	.best-gastrologist-content a {
		color: #000000;
		text-decoration: underline;
	}
	
	.best-gastrologist-content a[href]:after {
		content: " (" attr(href) ")";
		font-size: 0.8em;
	}
}