/*
Theme Name: TEFL Australia Theme
Author: Rajiv
Version: 1.0
Description: Custom Bootstrap 5-based theme with sidebar TEFL ads
*/

.article-home h3 {
	font-size: 1.8rem;
	margin: 0 0 20px 0;
}
.article-home h3 a {
	color: var(--color3);
}
.article-home .card-body {
	padding: 2.5rem;
}
ul.page-numbers {
	border: none;
}
.page-numbers {
    display: flex;
    margin: 0 5px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
}

.page-numbers.current {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.article-header h1 {
	font-size: 3.5rem;
	font-weight: 700;
	color: var(--color3);
}
.article-content {
	background-color: #fff;
	padding: 3%;
	border-radius: 8px;
	font-size: 1.05em;
	color: #2D3748;
}
.article-content img {
	max-width: 100%;
}
.article-content ol,
.article-content ul {
    margin: 0 0 20px 0;
    padding-left: 2em;
}
.article-content ol {
	list-style: decimal;
}
.article-content ul {	
	list-style: disc;
}
.article-content li {
    padding-bottom: 5px;
	line-height: 1.6em;
}

.article-content h2 {
    font-style: normal;
    font-weight: 600;
    font-size: 2.5rem;
    line-height: 1.2;
    color: #e87d2c;
	background-color: #fbf3ed;
	padding: 8px 10px;
	margin-top: 50px;
}
.article-content > h2:first-child {
	margin-top: 0;
}
.article-content h3 {
    font-style: normal;
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 1.3;
    color: var(--color3);
	border-bottom:1px solid #ccc;
}
.article-content h4 {
	margin-top:20px;
	font-weight: 700;
	font-size: 1.4rem;
}
.article-content table {
	margin-bottom: 30px;
}
ul + h4 {
  margin-top: 15px;
}
p + h4 {
	margin-top:30px !important;
}
/* category display above heading */
.post-categories {
	margin-bottom: 30px;
	font-size: 0.8rem;
	color: #666;
}
.post-categories .category-link {
	text-decoration: none;
	color: #000;
	margin-right: 10px;
	position: relative;
	padding-right: 15px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.post-categories .category-link::after {
	content: '|';
	position: absolute;
	right: 0;
	color: #bbb;
}
.post-categories .category-link:last-of-type::after {
	content: '';
}

/* sidebar tefl ads */
.teflads-side {
	position: -webkit-sticky !important;
	position: sticky !important;
	top: 120px; /* Adjust as per header/menu */
	z-index: 2;
}

/* related posts */
.owl-related-posts .related-post-card {
	padding: 10px;
}
.related-posts .card {
	border-radius: 8px;
	overflow: hidden;
}
.related-posts .card-title {
	font-size: 1.2rem;
	color: #042a45;
	margin-top: 10px;
}
.related-posts .card:hover .card-title {
	color: #c2058b;
}
.related-posts h5 {
	margin: 10px 0 20px 0 !important;
	line-height: 1.4em;
}

/* responsive */
@media (max-width: 991.98px) {
  .teflads-fixed {
    position: static !important;
    width: 100% !important;
  }
}

@media only screen and (max-width: 768px) {
	.article-home .card-body {
		padding: 1.5rem;
	}
	.article-header h1 {
		font-size: 2.5rem;
	}
	.article-content h2 {
		font-size: 2rem;
	}
	.article-content h3 {
		font-size: 1.6rem;
	}
	.article-content h4 {
		font-size: 1.3rem;
	}
	.teflads-side {
		padding: 20px 10px;
	}
}