/*
Theme Name: Dr Kabir
Theme URI: https://drkabirahmedkhan.com
Author: Niloy
Author URI: https://drkabirahmedkhan.com
Description: Self-contained theme for Dr Kabir Ahammed Khan. Bundles the site header, hero, about, services, contact and footer sections, the settings admin panel, the SMTP mail layer and the contact/appointment form handlers. No companion plugin or page builder required — migrating the site means copying this one folder plus the database.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drkabir
Tags: one-column, full-width-template, custom-menu, custom-logo, translation-ready
*/

/* --------------------------------------------------------------------------
   The hero, about, services, contact and footer sections ship their own
   scoped styles from inc/render-*.php and assets/css/niloy-sections.css.
   What follows is only the shell: resets, typography and the layout used by
   ordinary pages, posts, search and 404.
   -------------------------------------------------------------------------- */

:root {
	--dk-text: #222;
	--dk-muted: #56606a;
	--dk-heading: #16283c;
	--dk-accent: #2a9d8f;
	--dk-accent-dark: #1e4e8c;
	--dk-border: #e3e8ee;
	--dk-bg: #fff;
	--dk-bg-soft: #f6f8fa;
	--dk-radius: 10px;
	--dk-content-width: 1160px;
	--dk-reading-width: 860px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--dk-bg);
	color: var(--dk-text);
	font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--dk-accent-dark);
}

a:hover,
a:focus {
	color: var(--dk-accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--dk-heading);
	line-height: 1.25;
	margin: 0 0 0.6em;
	font-weight: 700;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }

p,
ul,
ol,
table,
blockquote,
figure {
	margin: 0 0 1.2em;
}

blockquote {
	border-left: 4px solid var(--dk-accent);
	padding: 0.2em 0 0.2em 1.2em;
	color: var(--dk-muted);
	font-style: italic;
}

code,
pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.92em;
	background: var(--dk-bg-soft);
	border-radius: 6px;
}

code { padding: 0.15em 0.4em; }

pre {
	padding: 1em 1.2em;
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	border: 1px solid var(--dk-border);
	padding: 0.6em 0.8em;
	text-align: left;
}

th { background: var(--dk-bg-soft); }

/* Layout shell ----------------------------------------------------------- */

.dk-content {
	min-height: 40vh;
}

.dk-container {
	width: 100%;
	max-width: var(--dk-content-width);
	margin: 0 auto;
	padding: 0 20px;
}

.dk-container--reading {
	max-width: var(--dk-reading-width);
}

.dk-main {
	padding: 56px 0 72px;
}

/* The front page is built entirely from full-bleed sections. */
.dk-main--full {
	padding: 0;
}

.dk-entry-header {
	margin-bottom: 32px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--dk-border);
}

.dk-entry-title {
	margin-bottom: 0.25em;
}

.dk-entry-meta {
	color: var(--dk-muted);
	font-size: 0.92rem;
	margin: 0;
}

.dk-entry-content::after {
	content: "";
	display: table;
	clear: both;
}

.dk-entry-content > *:last-child {
	margin-bottom: 0;
}

/* Archive / search listings ---------------------------------------------- */

.dk-list-item {
	padding: 28px 0;
	border-bottom: 1px solid var(--dk-border);
}

.dk-list-item:first-of-type {
	padding-top: 0;
}

.dk-list-title {
	font-size: 1.4rem;
	margin-bottom: 0.3em;
}

.dk-list-title a {
	text-decoration: none;
}

.dk-pagination {
	margin-top: 40px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.dk-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--dk-border);
	border-radius: 8px;
	text-decoration: none;
}

.dk-pagination .page-numbers.current {
	background: var(--dk-accent);
	border-color: var(--dk-accent);
	color: #fff;
}

/* Forms ------------------------------------------------------------------- */

.dk-search-form {
	display: flex;
	gap: 8px;
	max-width: 460px;
}

.dk-search-form input[type="search"] {
	flex: 1;
	padding: 11px 14px;
	border: 1px solid var(--dk-border);
	border-radius: 8px;
	font: inherit;
}

.dk-button,
.dk-search-form button {
	display: inline-block;
	padding: 11px 22px;
	background: var(--dk-accent);
	color: #fff;
	border: 0;
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.dk-button:hover,
.dk-search-form button:hover {
	background: var(--dk-accent-dark);
	color: #fff;
}

/* 404 ---------------------------------------------------------------------- */

.dk-404 {
	text-align: center;
	padding: 80px 0 96px;
}

.dk-404 .dk-search-form {
	margin: 28px auto 0;
}

/* Accessibility ------------------------------------------------------------ */

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

.skip-link:focus {
	clip-path: none;
	background: #fff;
	color: var(--dk-accent-dark);
	display: block;
	font-weight: 700;
	height: auto;
	left: 12px;
	padding: 14px 22px;
	top: 12px;
	width: auto;
	z-index: 100000;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
	body { font-size: 16px; }
	h1 { font-size: 1.8rem; }
	h2 { font-size: 1.45rem; }
	.dk-main { padding: 36px 0 52px; }
}
