/*
  Restore stylesheet.
  The original theme CSS (dynamico/style.css, ElementsKit, fonts) was never
  captured by the Wayback Machine, so it cannot be recovered byte-for-byte.
  This stylesheet only tidies up the existing markup for readability, reusing
  the WordPress global-styles color tokens already embedded in index.html
  (--wp--preset--color--*) rather than inventing a new palette.
*/

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--wp--preset--color--light-gray, #eee);
	color: var(--wp--preset--color--dark-gray, #333);
	font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
	line-height: 1.7;
}

a {
	color: var(--wp--preset--color--tertiary, #ae3535);
	text-decoration: none;
}
a:hover { text-decoration: underline; }

.site {
	max-width: 1180px;
	margin: 0 auto;
	background: #fff;
	box-shadow: 0 0 24px rgba(0,0,0,.05);
	min-height: 100vh;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #000;
	color: #fff;
	padding: .5em 1em;
	z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
	background: var(--wp--preset--color--tertiary, #ae3535);
	color: #fff;
	padding: 1.5rem 2rem 0;
}
.site-branding { padding-bottom: 1rem; }
.site-title { margin: 0; font-size: 1.9rem; }
.site-title a { color: #fff; }
.site-description { margin: .25rem 0 0; color: rgba(255,255,255,.85); font-size: .95rem; }

.primary-navigation-wrap {
	border-top: 1px solid rgba(255,255,255,.2);
}
.main-navigation ul#primary-menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	margin: 0;
	padding: 0;
}
.main-navigation ul#primary-menu a {
	display: block;
	padding: .9rem 1rem;
	color: #fff;
	font-weight: 600;
	font-size: .95rem;
}
.main-navigation ul#primary-menu a:hover {
	background: rgba(255,255,255,.12);
	text-decoration: none;
}
.primary-menu-toggle { display: none; }

/* Content layout */
.site-content {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 2rem;
	padding: 2rem;
	align-items: start;
}

/* Featured post */
.featured-posts-wrap { grid-column: 1 / -1; }
.featured-posts article {
	background: var(--wp--preset--color--light-gray, #eee);
	border-radius: 10px;
	padding: 1.75rem;
}
.featured-posts .post-title {
	font-size: 1.6rem;
	margin: 0 0 .75rem;
}
.featured-posts .post-title a { color: var(--wp--preset--color--tertiary, #ae3535); }

/* Post grid */
.post-wrapper {
	grid-column: 1;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.5rem;
}
.post-column article {
	height: 100%;
	display: flex;
	flex-direction: column;
	border: 1px solid #eee;
	border-radius: 10px;
	padding: 1.25rem;
	transition: box-shadow .15s ease, transform .15s ease;
}
.post-column article:hover {
	box-shadow: 0 6px 18px rgba(0,0,0,.08);
	transform: translateY(-2px);
}
.post-title {
	font-size: 1.05rem;
	margin: 0 0 .5rem;
	line-height: 1.4;
}
.post-title a { color: var(--wp--preset--color--dark-gray, #333); }
.post-title a:hover { color: var(--wp--preset--color--tertiary, #ae3535); }

.entry-meta {
	font-size: .8rem;
	color: var(--wp--preset--color--gray, #777);
	margin-bottom: .5rem;
}
.entry-meta a { color: inherit; }

.entry-content.entry-excerpt {
	font-size: .92rem;
	color: #555;
	flex-grow: 1;
}
.entry-content.entry-excerpt p { margin: 0 0 .75rem; }

.more-link {
	display: inline-block;
	margin-top: .25rem;
	font-weight: 600;
	color: var(--wp--preset--color--tertiary, #ae3535);
}

.entry-categories { margin-top: .75rem; }
.entry-categories ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.entry-categories a {
	font-size: .75rem;
	background: var(--wp--preset--color--light-gray, #eee);
	color: var(--wp--preset--color--dark-gray, #333);
	padding: .2rem .6rem;
	border-radius: 999px;
}
.entry-categories a:hover { text-decoration: none; background: #e2e2e2; }

/* Pagination */
.pagination { grid-column: 1; margin-top: .5rem; }
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	align-items: center;
}
.pagination .page-numbers {
	display: inline-block;
	min-width: 2.2rem;
	text-align: center;
	padding: .4rem .5rem;
	border: 1px solid #eee;
	border-radius: 6px;
	color: var(--wp--preset--color--dark-gray, #333);
}
.pagination .page-numbers.current {
	background: var(--wp--preset--color--tertiary, #ae3535);
	border-color: var(--wp--preset--color--tertiary, #ae3535);
	color: #fff;
}
.pagination .page-numbers:hover { text-decoration: none; border-color: var(--wp--preset--color--tertiary, #ae3535); }

/* Sidebar */
.sidebar.widget-area {
	grid-column: 2;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.widget {
	background: var(--wp--preset--color--light-gray, #eee);
	border-radius: 10px;
	padding: 1.25rem;
}
.widget .wp-block-heading {
	margin: 0 0 .75rem;
	font-size: 1.05rem;
}
.wp-block-search__inside-wrapper {
	display: flex;
	border: 1px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}
.wp-block-search__input {
	flex: 1;
	border: none;
	padding: .55rem .75rem;
	font: inherit;
}
.wp-block-search__input:focus { outline: none; }
.wp-block-search__button {
	border: none;
	background: var(--wp--preset--color--tertiary, #ae3535);
	color: #fff;
	padding: .55rem 1rem;
	cursor: pointer;
	font: inherit;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: .35rem 0; border-bottom: 1px dashed #ddd; }
.widget ul li:last-child { border-bottom: none; }
.widget ul a { color: var(--wp--preset--color--dark-gray, #333); }
.widget ul a:hover { color: var(--wp--preset--color--tertiary, #ae3535); }

/* Footer */
.footer-wrap {
	background: var(--wp--preset--color--dark-gray, #333);
	margin-top: 2rem;
}
.site-footer .site-info {
	max-width: 1180px;
	margin: 0 auto;
	padding: 1.25rem 2rem;
	text-align: center;
	color: rgba(255,255,255,.75);
	font-size: .85rem;
}

/* Responsive */
@media (max-width: 820px) {
	.site-content { grid-template-columns: 1fr; padding: 1.25rem; }
	.post-wrapper, .pagination, .sidebar.widget-area { grid-column: 1; }
	.site-header { padding: 1.25rem 1.25rem 0; }
	.main-navigation ul#primary-menu { flex-direction: column; }
}
