/*
Theme Name: CENC Theme
Theme URI: https://cenc.cm
Author: CENC Webmaster
Author URI: https://cenc.cm
Description: Theme TopTech pour la Conférence Épiscopale Nationale du Cameroun.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cenc-theme
*/

/* ── WordPress-specific styles ── */

/* Accessibility: screen reader text */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* WordPress alignment classes */
.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* WordPress image captions */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.5em 0;
	font-size: 14px;
	color: #686868;
	text-align: center;
}

/* WordPress gallery */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }

/* WordPress post thumbnails */
img {
	max-width: 100%;
	height: auto;
}

/* WordPress pagination */
.pagination {
	text-align: center;
	margin: 30px 0;
}

.pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 5px;
	flex-wrap: wrap;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid #ddd;
	color: #0A1628;
	text-decoration: none;
	border-radius: 4px;
	transition: 0.3s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: #1B4F8A;
	color: #fff;
	border-color: #1B4F8A;
}

/* WordPress comments - TopTech compatible */
.comment-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.comment-body {
	padding: 20px 0;
	border-bottom: 1px solid #eee;
}

.comment-meta {
	margin-bottom: 10px;
}

.comment-author .fn {
	font-weight: 700;
	color: #0A1628;
}

.comment-metadata {
	font-size: 14px;
	color: #686868;
}

.comment-content p {
	margin-top: 10px;
}

.comment-reply-link {
	color: #1B4F8A;
	font-weight: 600;
}

.comment-reply-link:hover {
	color: #C5960F;
}

/* WordPress comment form */
.comment-respond {
	margin-top: 30px;
}

.comment-form label {
	color: #0A1628;
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 15px;
	font-family: "Nunito", sans-serif;
}

.comment-form input[type="submit"] {
	background: #1B4F8A;
	color: #fff;
	border: none;
	padding: 12px 30px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	transition: 0.3s;
}

.comment-form input[type="submit"]:hover {
	background: #C5960F;
}

/* WordPress tag links in single posts */
.blog-details-category .tag-links a,
.blog-details-category a {
	display: inline-block;
	padding: 5px 15px;
	background: #1B4F8A;
	color: #fff;
	border-radius: 4px;
	margin: 3px;
	text-decoration: none;
	font-size: 14px;
	transition: 0.3s;
}

.blog-details-category .tag-links a:hover,
.blog-details-category a:hover {
	background: #C5960F;
}

/* WP Admin bar fix */
.admin-bar .header-area {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .header-area {
		top: 46px;
	}
}

/* Page links (multi-page posts) */
.page-links {
	margin: 20px 0;
	font-weight: 600;
}

.page-links .post-page-numbers {
	display: inline-block;
	padding: 5px 12px;
	margin: 0 3px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.page-links .post-page-numbers.current {
	background: #1B4F8A;
	color: #fff;
	border-color: #1B4F8A;
}

/* Search form */
.search-form {
	display: flex;
	max-width: 400px;
}

.search-form .search-field {
	flex: 1;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 4px 0 0 4px;
	border-right: none;
}

.search-form .search-submit {
	background: #1B4F8A;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 0 4px 4px 0;
	cursor: pointer;
}

.search-form .search-submit:hover {
	background: #C5960F;
}

/* Gutenberg blocks */
.wp-block-button__link {
	border-radius: 4px;
}

.has-text-align-center {
	text-align: center;
}

.has-text-align-right {
	text-align: right;
}
