/* ==========================================================================
   Site theme (self-contained): tokens, reset, header, mobile panel,
   layout cards and footer. Extracted from the downloadyat.com theme.
   ========================================================================== */

:root {
	--bg: #eef3f7;
	--surface: #ffffff;
	--surface-soft: #f7fafc;
	--text: #183144;
	--muted: #617487;
	--border: #dbe6ef;
	--brand: #00aad5;
	--brand-dark: #0c4668;
	--brand-soft: #e7f8fc;
	--success: #15a46d;
	--warning: #f59e0b;
	--danger: #ef4444;
	--shadow-sm: 0 6px 16px rgba(8, 34, 53, 0.06);
	--shadow-md: 0 12px 28px rgba(8, 34, 53, 0.10);
	--shadow-lg: 0 24px 50px rgba(8, 34, 53, 0.14);
	--radius-sm: 12px;
	--radius-md: 18px;
	--radius-lg: 24px;
	--container: 100%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
	color: var(--text);
	background: linear-gradient(180deg, #edf4f8 0%, #f7fafc 100%);
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { opacity: .92; }
p, ul, ol { line-height: 1.9; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
#primary[tabindex="-1"]:focus { outline: 0; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	inset-inline-start: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.site-shell { background: var(--surface); box-shadow: var(--shadow-lg); min-height: 100vh; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(12,70,104,.97);
	backdrop-filter: blur(12px);
	color: #fff;
	box-shadow: var(--shadow-md);
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	min-height: 84px;
}
.site-brand img { height: 42px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav__links { display: flex; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.site-nav__links a { color: #fff; font-size: 1.25rem; padding: 8px; border-radius: 999px; }
.site-nav__links a:hover { color: var(--brand); opacity: 1; }
.menu-toggle {
	display: inline-flex; border: 0; background: transparent; color: #fff; font-size: 1.25rem; cursor: pointer; padding: 8px;
}

/* Mobile panel */
.mobile-panel {
	position: fixed; inset: 0 auto 0 0; width: 340px; max-width: 88vw; transform: translateX(-101%); transition: .25s ease;
	background: var(--surface); box-shadow: var(--shadow-lg); z-index: 80; padding: 22px;
	overflow-y: auto;
}
.mobile-panel.is-open { transform: translateX(0); }
.mobile-panel a { display: block; padding: 12px 14px; border-radius: 12px; color: var(--text); font-weight: 700; }
.mobile-panel a:hover { background: var(--surface-soft); }
.mobile-panel__title { display: block; margin-bottom: 14px; font-size: 1.05rem; font-weight: 800; }
.mobile-group {
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--surface-soft);
	margin-bottom: 10px;
	overflow: hidden;
}
.mobile-group summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	font-weight: 800;
	color: var(--text);
}
.mobile-group summary::-webkit-details-marker { display: none; }
.mobile-group summary i { transition: transform .2s ease; }
.mobile-group[open] summary i { transform: rotate(180deg); }
.mobile-group__links {
	border-top: 1px solid var(--border);
	padding: 6px;
	display: grid;
	gap: 4px;
	background: rgba(255,255,255,.65);
}
.backdrop {
	position: fixed; inset: 0; background: rgba(6,16,26,.48); opacity: 0; pointer-events: none; transition: .25s ease; z-index: 70;
}
.backdrop.is-open { opacity: 1; pointer-events: auto; }

/* Layout cards */
.home-sections,
.page-sections { display: grid; gap: 22px; padding: 6px 0 40px; }
.content-section {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}
.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px;
	background: var(--brand-dark);
	color: #fff;
}
.section-head h2,
.section-head h3,
.section-head h4 {
	font-size: 1.08rem;
	line-height: 1.4;
}
.section-head h1 {
	flex: 1;
	margin: 0;
	text-align: center;
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: .2px;
}
.section-head a { color: #d9f7ff; font-size: .92rem; font-weight: 700; }
.section-body { padding: 22px; }

/* Footer */
.site-footer {
	background: linear-gradient(180deg, #0c4668 0%, #08364f 100%);
	color: #dbeaf3;
	margin-top: 28px;
	padding-top: 28px;
}
.site-footer__main {
	width: min(var(--container), calc(100% - 32px));
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.25fr .85fr .85fr;
	gap: 22px;
	padding-bottom: 22px;
}
.footer-column {
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 20px;
	padding: 18px;
}
.footer-column h5 {
	margin: 0 0 14px;
	color: #fff;
	font-size: 1.02rem;
}
.footer-column p {
	color: #d0e3ee;
	line-height: 1.9;
	font-size: .94rem;
}
.footer-links-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 10px;
}
.footer-links-list a { color: #dbeaf3; }
.footer-links-list a:hover { color: #fff; opacity: 1; }
.social-links {
	display: flex;
	gap: 10px;
	margin-top: 14px;
}
.social-links__link {
	width: 40px;
	height: 40px;
	display: inline-grid;
	place-items: center;
	border-radius: 999px;
	color: #fff;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.12);
}
.social-links__link:hover { color: #fff; opacity: 1; }
.site-footer__bottom {
	border-top: 1px solid rgba(255,255,255,.08);
	text-align: center;
	padding: 16px 20px 20px;
	color: #d0e3ee;
	font-size: .92rem;
}
.site-footer__bottom a { color: #fff; font-weight: 700; }

/* Responsive */
@media (max-width: 860px) {
	.site-nav__links { display: none; }
	.site-footer__main { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
	.container { width: min(var(--container), calc(100% - 20px)); }
	.section-body { padding: 16px; }
	.section-head { padding: 13px 16px; }
}

/* ==========================================================================
   Tools landing – page styles
   Header, footer and layout come from the site theme (base.css / main.css).
   This file only styles the tools grid and the article content.
   ========================================================================== */

.tool-lead {
	font-size: 1.15rem;
	line-height: 1.9;
	color: #617487;
	margin: 0 0 1.5rem;
	text-align: center;
}

/* ------------------------------- Tools grid ------------------------------- */
.tools-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.tools-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.tools-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2.5rem;
	}
}

.tool-card {
	background: #f7fafc;
	border: 1px solid #dbe6ef;
	border-radius: 1rem;
	padding: 2rem;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.tool-card:hover {
	transform: translateY(-5px);
	border-color: #00aad5;
	box-shadow: 0 16px 32px rgba(8, 34, 53, 0.14);
}

.tool-icon {
	font-size: 3rem;
	margin-bottom: 1.5rem;
	color: #00aad5;
}

.tool-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: #0c4668;
}

.tool-description {
	font-size: 1rem;
	line-height: 1.7;
	color: #617487;
	margin-bottom: 1.5rem;
	flex-grow: 1;
}

.tool-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	color: #00aad5;
	transition: gap 0.3s ease;
}

.tool-card:hover .tool-cta {
	gap: 1rem;
}

.tool-cta i {
	transition: transform 0.3s ease;
}

.tool-card:hover .tool-cta i {
	transform: translateX(-5px);
}

/* ------------------------------- Article ------------------------------- */
.content-text {
	font-size: 1.05rem;
	line-height: 1.9;
	color: #384250;
	text-align: justify;
}

.content-text p {
	margin-bottom: 1rem;
}

.content-text a {
	color: #00aad5;
	text-decoration: none;
}

.content-text a:hover {
	color: #0c4668;
}

.subsection-title {
	font-size: 1.4rem;
	font-weight: 700;
	margin: 1.75rem 0 1rem;
	color: #0c4668;
}

/* ------------------------------- Responsive ------------------------------- */
@media (max-width: 768px) {
	.tool-lead {
		font-size: 1.05rem;
	}

	.tools-grid {
		gap: 1.5rem;
	}

	.tool-card {
		padding: 1.5rem;
	}
}
