/**
 * Service Template Styles
 * Custom styles for single-services.php template
 * Updated for comprehensive 9-tab settings support
 */

/* ==========================================
   SERVICE PAGE TITLE BAR
   ========================================== */

.page-title-bar {
	padding: 60px 0;
	background-color: #f8f9fa;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	position: relative;
	z-index: 1;
}

/* Title Bar Heights */
.page-title-bar.page-title-extra-small {
	padding: 30px 0;
}

.page-title-bar.page-title-small {
	padding: 45px 0;
}

.page-title-bar.page-title-medium {
	padding: 60px 0;
}

.page-title-bar.page-title-large {
	padding: 80px 0;
}

.page-title-bar.page-title-extra-large {
	padding: 100px 0;
}

/* Title Wrapper */
.page-title-bar .title-wrapper {
	position: relative;
	z-index: 2;
}

/* Page Title */
.page-title-bar .page-title {
	font-size: 48px;
	font-weight: 700;
}

/* ==========================================
   SERVICE MAIN CONTENT - COMPREHENSIVE SUPPORT
   ========================================== */

/* Service Main Content Container */
.service-main-content {
    padding: 40px 0;
    background: #fff;
}

.service-main-content.layout-boxed {
    background: #f8f9fa;
    padding: 60px 0;
}

.service-main-content.layout-stretched {
    width: 100%;
    max-width: none;
}

/* Service Content Wrapper */
.service-content-wrapper {
    position: relative;
}

/* Service Featured Image */
.service-featured-image {
    margin-bottom: 30px;
    text-align: center;
}

.service-featured-image img {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.service-featured-image img:hover {
    transform: scale(1.02);
}

/* Service Content */
.service-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.service-content h1,
.service-content h2,
.service-content h3,
.service-content h4,
.service-content h5,
.service-content h6 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.service-content p {
    margin-bottom: 20px;
}

.service-content ul,
.service-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.service-content li {
    margin-bottom: 8px;
}

.service-content blockquote {
    border-left: 4px solid var(--theme-color-primary, #007cba);
    background: #f8f9fa;
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
}

/* Service Links with Theme Color Support */
.service-content a {
    color: var(--theme-color-primary, #007cba);
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-content a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Service Buttons with Theme Color Support */
.service-content .btn-primary {
    background-color: var(--theme-color-primary, #007cba);
    border-color: var(--theme-color-primary, #007cba);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.service-content .btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Page Subtitle */
.page-title-bar .page-subtitle {
	font-size: 18px;
	line-height: 1.6;
	color: #666;
	margin-bottom: 20px;
}

/* Breadcrumbs */
.page-title-bar .breadcrumb-wrapper {
	margin-top: 20px;
}

/* Text Alignments */
.page-title-bar .text-left {
	text-align: left;
}

.page-title-bar .text-center {
	text-align: center;
}

.page-title-bar .text-right {
	text-align: right;
}

/* ==========================================
   SERVICE CONTENT AREA
   ========================================== */

.service-content {
	padding: 60px 0;
	background-color: #fff;
}

.service-content .site-main {
	background-color: #fff;
}

/* ==========================================
   SERVICE ARTICLE
   ========================================== */

.service-content article {
	margin-bottom: 30px;
}

/* Featured Image */
.service-content .post-thumbnail {
	margin-bottom: 30px;
	overflow: hidden;
	border-radius: 4px;
}

.service-content .post-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.service-content .post-thumbnail img:hover {
	transform: scale(1.05);
}

/* Entry Content */
.service-content .entry-content {
	font-size: 16px;
	line-height: 1.8;
	color: #555;
}

.service-content .entry-content p {
	margin-bottom: 20px;
}

.service-content .entry-content h1,
.service-content .entry-content h2,
.service-content .entry-content h3,
.service-content .entry-content h4,
.service-content .entry-content h5,
.service-content .entry-content h6 {
	margin-top: 30px;
	margin-bottom: 15px;
	font-weight: 600;
	color: #333;
}

.service-content .entry-content h1 { font-size: 36px; }
.service-content .entry-content h2 { font-size: 30px; }
.service-content .entry-content h3 { font-size: 24px; }
.service-content .entry-content h4 { font-size: 20px; }
.service-content .entry-content h5 { font-size: 18px; }
.service-content .entry-content h6 { font-size: 16px; }

.service-content .entry-content ul,
.service-content .entry-content ol {
	margin-bottom: 20px;
	padding-left: 30px;
}

.service-content .entry-content li {
	margin-bottom: 10px;
}

.service-content .entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	margin: 20px 0;
}

/* Page Links (Pagination) */
.service-content .page-links {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
	clear: both;
}

.service-content .page-links a {
	display: inline-block;
	padding: 5px 15px;
	margin-right: 5px;
	background-color: #f8f9fa;
	color: #333;
	text-decoration: none;
	border-radius: 4px;
	transition: background-color 0.3s ease;
}

.service-content .page-links a:hover {
	background-color: #007bff;
	color: #fff;
}

/* ==========================================
   SERVICE META (Categories, Tags)
   ========================================== */

.service-content .entry-footer {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

.service-content .service-meta {
	font-size: 14px;
	color: #666;
}

.service-content .service-meta strong {
	color: #333;
	margin-right: 5px;
}

.service-content .service-meta .cat-links a {
	color: #007bff;
	text-decoration: none;
	transition: color 0.3s ease;
}

.service-content .service-meta .cat-links a:hover {
	color: #0056b3;
	text-decoration: underline;
}

/* ==========================================
   POST NAVIGATION (Previous/Next)
   ========================================== */

.service-content .post-navigation {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 2px solid #e0e0e0;
}

.service-content .post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

.service-content .post-navigation .nav-previous,
.service-content .post-navigation .nav-next {
	flex: 1;
	max-width: 48%;
}

.service-content .post-navigation a {
	display: block;
	padding: 20px;
	background-color: #f8f9fa;
	color: #333;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.service-content .post-navigation a:hover {
	background-color: #007bff;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-content .post-navigation .nav-subtitle {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 5px;
	opacity: 0.7;
}

.service-content .post-navigation .nav-title {
	display: block;
	font-size: 16px;
	font-weight: 600;
}

.service-content .post-navigation .nav-next {
	text-align: right;
}

/* ==========================================
   SIDEBAR
   ========================================== */

.service-content #secondary.widget-area {
	padding-left: 30px;
}

.service-content #secondary.order-md-1 {
	padding-left: 0;
	padding-right: 30px;
}

.service-content #secondary .widget {
	margin-bottom: 40px;
	padding: 30px;
	background-color: #f8f9fa;
	border-radius: 4px;
}

.service-content #secondary .widget-title {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #007bff;
	color: #333;
}

.service-content #secondary .widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.service-content #secondary .widget li {
	padding: 8px 0;
	border-bottom: 1px solid #e0e0e0;
}

.service-content #secondary .widget li:last-child {
	border-bottom: none;
}

.service-content #secondary .widget a {
	color: #555;
	text-decoration: none;
	transition: color 0.3s ease;
}

.service-content #secondary .widget a:hover {
	color: #007bff;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 991px) {
	.page-title-bar .page-title {
		font-size: 36px;
	}
	
	.page-title-bar .page-subtitle {
		font-size: 16px;
	}
	
	.service-content #secondary.widget-area {
		padding-left: 0;
		padding-right: 0;
		margin-top: 40px;
	}
	
	.service-content .post-navigation .nav-links {
		flex-direction: column;
	}
	
	.service-content .post-navigation .nav-previous,
	.service-content .post-navigation .nav-next {
		max-width: 100%;
	}
	
	.service-content .post-navigation .nav-next {
		text-align: left;
	}
}

@media (max-width: 767px) {
	.page-title-bar {
		padding: 40px 0;
	}
	
	.page-title-bar.page-title-extra-small { padding: 20px 0; }
	.page-title-bar.page-title-small { padding: 30px 0; }
	.page-title-bar.page-title-medium { padding: 40px 0; }
	.page-title-bar.page-title-large { padding: 50px 0; }
	.page-title-bar.page-title-extra-large { padding: 60px 0; }
	
	.page-title-bar .page-title {
		font-size: 28px;
	}
	
	.page-title-bar .page-subtitle {
		font-size: 14px;
	}
	
	.service-content {
		padding: 40px 0;
	}
	
	.service-content .entry-content {
		font-size: 15px;
	}
	
	.service-content .entry-content h1 { font-size: 28px; }
	.service-content .entry-content h2 { font-size: 24px; }
	.service-content .entry-content h3 { font-size: 20px; }
	.service-content .entry-content h4 { font-size: 18px; }
	.service-content .entry-content h5 { font-size: 16px; }
	.service-content .entry-content h6 { font-size: 15px; }
}

/* ==========================================
   RTL SUPPORT
   ========================================== */

.rtl .service-content #secondary.widget-area {
	padding-left: 0;
	padding-right: 30px;
}

.rtl .service-content #secondary.order-md-1 {
	padding-left: 30px;
	padding-right: 0;
}

.rtl .page-title-bar .text-left.flip {
	text-align: right;
}

.rtl .page-title-bar .text-right.flip {
	text-align: left;
}
