/* ==========================================================================
   Days in Levels – modern skin (2026)
   Loaded AFTER style.css and responsive.css. Only visual overrides –
   no markup or functionality depends on this file. Delete the "modern"
   entry in config/enqueue.php to return to the old look.
   ========================================================================== */

:root {
	--dil-green: #00a888;
	--dil-green-dark: #0b7f69;
	--dil-ink: #0f2e29;
	--dil-ink-2: #14433b;
	--dil-text: #1f2a28;
	--dil-muted: #61706d;
	--dil-bg: #f2f5f4;
	--dil-card: #ffffff;
	--dil-line: #e2e9e7;
	--dil-radius: 14px;
	--dil-shadow: 0 1px 2px rgba(15, 46, 41, .06), 0 6px 20px rgba(15, 46, 41, .06);
	--dil-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
	background-color: var(--dil-bg);
	color: var(--dil-text);
	font-family: var(--dil-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--dil-font); letter-spacing: -.01em; }
a { color: var(--dil-green-dark); transition: color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
a:hover, a:focus, a:active { color: var(--dil-ink-2); }
a:focus-visible, button:focus-visible, input:focus-visible {
	outline: 3px solid rgba(0, 168, 136, .45);
	outline-offset: 2px;
}
@media (min-width: 1200px) {
	.container { width: 1140px; }
}

/* ---------- Header ---------- */
.main-header { background: var(--dil-ink); }
.top-header {
	padding: 18px 0;
	background-image: linear-gradient(120deg, var(--dil-ink) 0%, var(--dil-ink-2) 55%, #1b6a5b 100%);
}
.top-header .container { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 32px; }
.top-header .container:before, .top-header .container:after { display: none; }
.header-logo, .header-motto-block { float: none; margin: 0; }
.header-logo img { display: block; }
.header-motto-block h1 {
	font-family: var(--dil-font);
	font-size: 18px;
	font-weight: 400;
	color: rgba(255, 255, 255, .85);
	letter-spacing: 0;
}

/* ---------- Navigation ---------- */
.main-navbar {
	background: var(--dil-ink);
	border-top: 1px solid rgba(255, 255, 255, .08);
	box-shadow: 0 2px 10px rgba(15, 46, 41, .18);
}
.navbar-default .navbar-nav > li > a {
	margin: 9px 6px 9px 0;
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	line-height: 18px;
	color: rgba(255, 255, 255, .9);
	background: transparent;
}
.navbar-default .navbar-nav > li.taxonomy > a {
	border-radius: 999px;
	background: var(--dil-green);
	color: #fff;
}
.navbar-default .navbar-nav > li:hover > a,
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > li > a:active,
.navbar-default .navbar-nav > li > a.mainhome:hover,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > li.open > a,
.navbar-default .navbar-nav > li.open > a:hover,
.navbar-default .navbar-nav > li.open > a:focus {
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	filter: none;
}
.navbar-default .navbar-nav > li.taxonomy:hover > a,
.navbar-default .navbar-nav > li.taxonomy > a:hover,
.navbar-default .navbar-nav > li.taxonomy > a:focus {
	background: #17c3a2;
}
@media (min-width: 768px) {
	.navbar-nav { margin-left: 0; }
}

.dropdown-menu {
	margin-top: -4px;
	padding: 8px;
	min-width: 210px;
	background: var(--dil-card);
	border: 1px solid var(--dil-line);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(15, 46, 41, .18);
}
.dropdown-menu > li { margin: 0; border-bottom: none; }
.dropdown-menu > li > a {
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--dil-text);
	font-size: 15px;
}
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
	background: #e6f6f2;
	color: var(--dil-green-dark);
}

/* ---------- Page shells ---------- */
.home-in, .inner-in { background: transparent; padding: 28px 0 40px; }
.breadcrumb-wrap { margin: 0; }
.breadcrumb-wrap:empty { display: none; }

/* ---------- Cards ---------- */
.news-block,
.article-upper,
.learn-with-us,
.how-improve-english,
.fancy-facebook-block {
	background: var(--dil-card);
	border: 1px solid var(--dil-line);
	border-radius: var(--dil-radius);
	box-shadow: var(--dil-shadow);
}

/* ---------- Article list ---------- */
.news-block {
	display: flex;
	align-items: flex-start;
	gap: 22px;
	padding: 18px;
	margin-bottom: 16px;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.news-block:before, .news-block:after { display: none; }
.news-block:hover {
	transform: translateY(-2px);
	border-color: #cfe3de;
	box-shadow: 0 2px 4px rgba(15, 46, 41, .06), 0 14px 32px rgba(15, 46, 41, .12);
}
.news-block .img-wrap { float: none; flex: 0 0 200px; max-width: 200px; }
.news-block.highlighted .img-wrap { flex-basis: 300px; max-width: 300px; }
.news-block .img-wrap img {
	display: block;
	width: 100%;
	border-radius: 10px;
	background: #e9efed;
}
.news-block-right,
.news-block.highlighted .news-block-right { flex: 1 1 0; min-width: 0; padding-left: 0; }
.news-block h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.news-block.highlighted h3 a { font-size: 24px; }
.news-block h3 a { color: var(--dil-ink); }
.news-block h3 a:hover, .news-block h3 a:focus, .news-block h3 a:active { color: var(--dil-green-dark); }
.news-block .title { margin-bottom: 6px; }
.news-block .news-excerpt {
	margin-bottom: 12px;
	color: var(--dil-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .03em;
}
.news-block .news-excerpt p {
	margin-top: 2px;
	color: var(--dil-text);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0;
}

/* ---------- Level buttons (same style as newsinlevels.com: pill + small "steps" icon = level) ---------- */
.fancy-buttons ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.fancy-buttons ul li,
.news-block.highlighted .fancy-buttons ul li { float: none; display: block; width: auto; margin: 0; }
.fancy-buttons ul li a,
.news-block.highlighted .fancy-buttons ul li a {
	--dil-bar-off: rgba(11, 127, 105, .25);
	display: inline-flex;
	align-items: center;
	gap: 7px;
	width: auto;
	min-width: 0;
	height: auto;
	padding: 7px 14px;
	border: 0;
	border-radius: 999px;
	background: #e6f6f2;
	box-shadow: inset 0 0 0 1px #bfe5dc;
	color: var(--dil-green-dark);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-transform: none;
	transition: background-color .15s ease, color .15s ease;
}
/* three bars before the text: Level 1 = 1 bar, Level 2 = 2 bars, Level 3 = 3 bars */
.fancy-buttons ul li a::before {
	--b1: currentColor; --b2: currentColor; --b3: currentColor;
	content: "";
	flex: 0 0 12px;
	width: 12px;
	height: 10px;
	background:
		linear-gradient(var(--b1), var(--b1)) 0 100% / 3px 40% no-repeat,
		linear-gradient(var(--b2), var(--b2)) 4.5px 100% / 3px 70% no-repeat,
		linear-gradient(var(--b3), var(--b3)) 9px 100% / 3px 100% no-repeat;
}
.fancy-buttons ul li:nth-child(1) a::before { --b2: var(--dil-bar-off); --b3: var(--dil-bar-off); }
.fancy-buttons ul li:nth-child(2) a::before { --b3: var(--dil-bar-off); }
.fancy-buttons ul li a:hover,
.fancy-buttons ul li a:focus,
.fancy-buttons ul li a:active,
.fancy-buttons ul li.active a {
	--dil-bar-off: rgba(255, 255, 255, .4);
	background: var(--dil-green);
	box-shadow: none;
	color: #fff;
}

/* ---------- Pagination ---------- */
.pagination { margin: 8px 0 20px; display: flex; flex-wrap: wrap; gap: 6px; float: right; }
.pagination > li > a, .pagination > li > span {
	float: none;
	display: block;
	min-width: 38px;
	margin: 0;
	padding: 7px 10px;
	text-align: center;
	border: 1px solid var(--dil-line);
	border-radius: 10px !important;
	background: var(--dil-card);
	color: var(--dil-text);
	font-weight: 600;
}
.pagination > li > a:hover, .pagination > li > a:focus {
	background: #e6f6f2;
	border-color: #bfe5dc;
	color: var(--dil-green-dark);
}
.pagination > .active > a, .pagination > .active > a:focus, .pagination > .active > a:hover,
.pagination > .active > span, .pagination > .active > span:focus, .pagination > .active > span:hover {
	background: var(--dil-green);
	border-color: var(--dil-green);
	color: #fff;
}

/* ---------- Info blocks ---------- */
.learn-with-us { padding: 22px 24px; margin: 20px 0; }
.learn-with-us h3,
body.page-template-default h3,
body.home.page-template-default .how-improve-english h3,
.how-improve-english h3,
.fancy-facebook-block h3,
.sponsored-block h3 {
	color: var(--dil-ink);
	font-weight: 700;
}
.learn-with-us h3 { font-size: 20px; margin: 0 0 10px; }
.learn-with-us p { line-height: 1.6; }
/* "Learn 3,000 words" as a coloured card with white text (same as newsinlevels.com, in the Days in Levels green) */
body .learn-with-us {
	padding: 26px 30px;
	background: linear-gradient(135deg, #0a8a71 0%, #0b6b59 55%, #0f4d43 100%);
	border: 0;
	color: #fff;
}
body .learn-with-us h3,
body.page-template-default .learn-with-us h3,
body.home.page-template-default .learn-with-us h3 {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -.01em;
	color: #fff;
	text-transform: none;
	background: none;
}
body .learn-with-us p { margin: 0; color: rgba(255, 255, 255, .9); font-size: 16px; }
body .learn-with-us p br { display: none; }
body .learn-with-us a { color: #fff; text-decoration: underline; }
@media screen and (max-width: 767px) {
	body .learn-with-us { padding: 20px 18px; }
	body .learn-with-us h3,
	body.page-template-default .learn-with-us h3,
	body.home.page-template-default .learn-with-us h3 { font-size: 19px; }
	body .learn-with-us p { font-size: 15px; }
}
.how-improve-english { padding: 26px 24px 10px; }
.how-improve-english h3 { font-size: 22px; margin: 0 0 22px; }
.method-to-improve { margin-bottom: 22px; }
.method-to-improve .img-wrap { max-width: 40px; }
.method-to-improve .img-wrap img { border-radius: 8px; }
.method-to-improve .method-content { padding-left: 58px; color: #46534f; }
.method-content h4 { color: var(--dil-green-dark); font-size: 18px; margin-bottom: 6px; }
.method-content ol li { margin-bottom: 6px; }
.method-content ol li:before { font-size: inherit; color: var(--dil-muted); }
.sponsored-block { margin: 16px 0 20px; }
span.trc_rbox_header_span { color: var(--dil-ink); }

/* ---------- Single article / pages ---------- */
.article-upper { padding: 26px 28px; }
.article-title { padding: 0 0 14px; }
.article-title h2, .article-title h3 {
	margin: 0;
	color: var(--dil-ink);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
}
body.single .article-title h2 { margin: 0 0 6px; }
.upper-content .img-wrap img { border-radius: 10px; }
#nContent { font-size: 17px; line-height: 1.75; }
#nContent p { margin: 0 0 14px; }
#nContent img { border-radius: 10px; }
.article-lower { background: transparent; margin-top: 16px; }
.article-lower .video-wrap { border-radius: var(--dil-radius); overflow: hidden; }
.article-lower .video-wrap:empty { display: none; }
.fancy-facebook-block { padding: 22px 24px; margin-top: 20px; }
/* !important: Customizer > Additional CSS adds 25px/20px padding here */
.fancy-facebook-block .title { padding: 0 !important; }
.fancy-facebook-block h3 { font-size: 20px; line-height: 1.35; }
.home-page .main-content > h2 { color: var(--dil-ink) !important; font-weight: 700; margin: 0 0 18px; }

/* ---------- Sidebar ---------- */
.sidebar .widget { margin: 0 0 22px; max-width: 100%; }
.sidebar #text-8.widget, .sidebar .widget_search, .sidebar .widget .get-app {
	background: var(--dil-card);
	border: 1px solid var(--dil-line);
	border-radius: var(--dil-radius);
	box-shadow: var(--dil-shadow);
}
.sidebar #text-8.widget { overflow: hidden; }
.sidebar #text-8.widget .get-app { border: none; box-shadow: none; }
.sidebar .widget .get-app h3 { color: var(--dil-ink); }
form#searchform { width: 100%; padding: 14px; }
form#searchform > div { display: flex; gap: 8px; }
form#searchform input[type=text], input#s {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	height: 40px;
	padding: 6px 12px;
	border: 1px solid var(--dil-line);
	border-radius: 10px;
	background: #f7faf9;
}
form#searchform input[type=text]:focus { border-color: var(--dil-green); background: #fff; }
form#searchform input#searchsubmit, input#searchsubmit {
	flex: 0 0 auto;
	width: auto;
	height: 40px;
	padding: 6px 18px;
	border-radius: 10px;
	background: var(--dil-green);
	font-weight: 600;
	cursor: pointer;
}
form#searchform input#searchsubmit:hover { background: var(--dil-green-dark); }

/* ---------- Footer ---------- */
.main-footer {
	margin-top: 10px;
	padding: 26px 0;
	background: var(--dil-ink);
	color: rgba(255, 255, 255, .8);
	font-size: 14px;
}
.main-footer .row { display: flex; flex-wrap: wrap; align-items: center; }
.main-footer p { color: rgba(255, 255, 255, .8); }
.social-links ul li a {
	width: 34px;
	height: 34px;
	line-height: 34px;
	background: rgba(255, 255, 255, .12);
}
.social-links ul li a:hover { transform: translateY(-2px); }
.footer-legal ul li { margin-left: 16px; }
.footer-legal ul li a { color: rgba(255, 255, 255, .8); }
.footer-legal ul li a:hover { color: #fff; text-decoration: underline; }

/* Ad slot: hide stray bare text left in the "multiplex" option field */
.sponsored-block { font-size: 0; line-height: 0; color: transparent; }
.sponsored-block > * { font-size: 16px; line-height: 1.6; color: var(--dil-text); }

/* ---------- Tablet / mobile ---------- */
@media screen and (max-width: 991px) {
	.navbar-collapse { background: transparent; }
	.navbar-nav { margin: 4px 0 12px; }
	.navbar-default .navbar-nav > li > a { display: block; margin: 4px 0; }
	.navbar .navbar-toggle { margin-right: 0; padding: 6px 0; }
	.navbar-toggle .icon-bar { width: 28px; height: 3px; border-radius: 2px; }
	.navbar-nav > li > .dropdown-menu { box-shadow: none; }
	aside.sidebar { margin-top: 24px; }
	.sidebar .widget { margin-left: auto; margin-right: auto; }
}
@media screen and (max-width: 767px) {
	body { font-size: 15px; }
	.top-header { padding: 12px 0; }
	.home-in, .inner-in { padding: 16px 0 28px; }
	.news-block .img-wrap { flex-basis: 150px; max-width: 150px; }
	.news-block.highlighted .img-wrap { flex-basis: 220px; max-width: 220px; }
	.news-block h3 { font-size: 18px; }
	.news-block.highlighted h3 a { font-size: 20px; }
	.article-upper { padding: 18px; }
	.article-title h2, .article-title h3 { font-size: 22px; }
	.navbar-default .navbar-nav > li.taxonomy > a { margin: 4px 0; }
	.navbar-default .navbar-nav .open .dropdown-menu > li > a { color: #fff; }
	.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
	.navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { background: rgba(255, 255, 255, .14); color: #fff; }
	.main-footer .row { display: block; text-align: center; }
	.footer-legal ul li { margin: 4px 8px; }
}
@media screen and (max-width: 600px) {
	body { font-size: 15px; }
	.news-block { display: block; padding: 14px; }
	.news-block .img-wrap, .news-block.highlighted .img-wrap { max-width: 100%; margin-bottom: 12px; }
	.learn-with-us, .how-improve-english h3, .how-improve-english > p { text-align: left; }
	.learn-with-us h3 { font-size: 18px; }
	.how-improve-english h3 { font-size: 19px; }
	.method-content h4 { font-size: 17px; }
	.pagination { float: none; justify-content: center; }
	#nContent { font-size: 16px; }
}
/* Mobile header: menu button sits in the logo row */
@media screen and (max-width: 991px) {
	.main-header { position: relative; }
	.main-navbar .container, .main-navbar .navbar, .main-navbar .container-fluid { position: static; }
	.main-navbar { border-top: none; }
	.navbar-header { position: absolute; top: 0; right: 15px; height: 68px; display: flex; align-items: center; }
	.navbar .navbar-toggle, .innerHeader .navbar .navbar-toggle { float: none; margin: 0; padding: 8px 0; }
	.top-header .container { padding-right: 70px; min-height: 44px; }
	.header-logo { max-width: 210px; }
}
@media (min-width: 768px) and (max-width: 991px) {
	.navbar-header { height: 88px; }
}
@media (max-width: 450px) {
	.date-and-level { margin: 0 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
	.news-block:hover, .social-links ul li a:hover { transform: none; }
}

/* ==========================================================================
   Round 2 – headings, header search, article extras, 404, icons
   ========================================================================== */

/* Headings: article title is now the page <h1>; the motto is a <p> except on the home page */
.header-motto-block .site-motto {
	margin: 0;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.1;
	color: rgba(255, 255, 255, .85);
}
.article-title h1,
.dil-search-title,
.dil-archive-title {
	margin: 0;
	color: var(--dil-ink);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
}
body.single .article-title h1 { margin: 0 0 6px; }
.dil-search-title, .dil-archive-title { margin: 0 0 18px; font-size: 24px; }

/* Search in the header */
.dil-search { float: right; position: relative; margin: 9px 0; }
.dil-search input {
	width: 220px;
	height: 36px;
	padding: 0 40px 0 16px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font-size: 14px;
	-webkit-appearance: none;
	appearance: none;
}
.dil-search input::placeholder { color: rgba(255, 255, 255, .65); }
.dil-search input:focus { border-color: var(--dil-green); background: rgba(255, 255, 255, .18); }
.dil-search button {
	position: absolute;
	top: 2px;
	right: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

/* Icons (inline SVG instead of the Font Awesome font) */
.social-links ul li a { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.social-links .dil-icon { width: 16px; height: 16px; }
.dil-icon-text { font-size: 11px; font-weight: 700; }
.breadcrumb > li + li:before { content: '\203A'; font-family: inherit; }

/* Article: large picture, level switch under it */
body.single .upper-content .img-wrap { float: none; margin: 0 0 16px; text-align: left; }
body.single .upper-content .img-wrap img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 1;
	object-fit: cover;
	border-radius: 12px;
	background: #e9efed;
}
body.single .date-and-level { float: none; margin: 0 0 14px; }

/* Difficult words: explanation on hover / tap */
.dil-word {
	position: relative;
	cursor: help;
	text-decoration: underline dotted var(--dil-green);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}
.dil-word:hover::after, .dil-word:focus::after {
	content: attr(data-tip);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 9px);
	transform: translateX(-50%);
	z-index: 20;
	width: max-content;
	max-width: 240px;
	padding: 7px 12px;
	border-radius: 8px;
	background: var(--dil-ink);
	color: #fff;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	white-space: normal;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.dil-word:hover::before, .dil-word:focus::before {
	content: '';
	position: absolute;
	left: 50%;
	bottom: calc(100% - 3px);
	margin-left: -6px;
	border: 6px solid transparent;
	border-top-color: var(--dil-ink);
	z-index: 20;
}
.dil-word:focus { outline: none; }

/* Share links */
.dil-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; }
.dil-share-label { color: var(--dil-muted); font-weight: 600; }
.dil-share a, .dil-share button {
	display: inline-block;
	padding: 5px 14px;
	border: 1px solid var(--dil-line);
	border-radius: 999px;
	background: var(--dil-bg);
	color: var(--dil-text);
	font: inherit;
	font-weight: 600;
	line-height: 20px;
	cursor: pointer;
}
.dil-share a:hover, .dil-share a:focus, .dil-share button:hover, .dil-share button:focus {
	border-color: var(--dil-green);
	color: var(--dil-green-dark);
}

/* Previous day / next day */
.dil-daynav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--dil-line);
}
.dil-daynav a {
	display: block;
	padding: 12px 16px;
	border: 1px solid var(--dil-line);
	border-radius: 12px;
	background: var(--dil-bg);
	color: var(--dil-text);
}
.dil-daynav a:hover, .dil-daynav a:focus { border-color: var(--dil-green); color: var(--dil-text); }
.dil-daynav small {
	display: block;
	margin-bottom: 2px;
	color: var(--dil-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
}
.dil-daynav b { display: block; font-size: 15px; line-height: 1.3; }
.dil-daynav .dil-daynav-next { text-align: right; }

/* 404 page */
.dil-404 p { margin: 0 0 16px; }
.dil-404-search { display: flex; gap: 8px; max-width: 460px; margin: 0 0 18px; }
.dil-404-search input {
	flex: 1 1 auto;
	min-width: 0;
	height: 42px;
	padding: 6px 14px;
	border: 1px solid var(--dil-line);
	border-radius: 10px;
	background: #f7faf9;
}
.dil-404-search input:focus { border-color: var(--dil-green); background: #fff; }
.dil-404-search button {
	height: 42px;
	padding: 6px 20px;
	border: 0;
	border-radius: 10px;
	background: var(--dil-green);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
.dil-404-search button:hover { background: var(--dil-green-dark); }
.dil-404-home { margin: 18px 0 0 !important; }

@media screen and (max-width: 991px) {
	.dil-search { float: none; margin: 4px 0 14px; }
	.dil-search input { width: 100%; height: 40px; }
	.dil-search button { top: 4px; }
}
@media screen and (max-width: 767px) {
	.article-title h1 { font-size: 22px; }
	.dil-search-title, .dil-archive-title { font-size: 20px; }
}
@media screen and (max-width: 600px) {
	.dil-daynav { grid-template-columns: 1fr; }
	.dil-daynav .dil-daynav-next { text-align: left; }
	.dil-daynav-empty { display: none; }
	.dil-word:hover::after, .dil-word:focus::after { max-width: 200px; }
}

/* "Get the App" sidebar box (the blue colour is written inline in the widget text, hence !important) */
.sidebar #text-8 .textwidget > div {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 22px 20px !important;
	background: linear-gradient(180deg, #e6f6f2 0, #fff 78px);
}
.sidebar #text-8 p { margin: 0; }
.sidebar #text-8 p:not(:has(a, span)) { display: none; }
.sidebar #text-8 p:first-child { margin-bottom: 6px; }
.sidebar #text-8 p:first-child span {
	color: var(--dil-ink) !important;
	font-size: 19px !important;
	line-height: 1.3 !important;
	font-weight: 700;
	letter-spacing: -.01em;
}
.sidebar #text-8 a { display: block; border-radius: 9px; }
.sidebar #text-8 img { display: block; width: 176px; height: auto; border-radius: 9px; }
.sidebar #text-8 .grow:hover { transform: scale(1.04); }

/* Logo: inline SVG mark + real text (replaces img/logo-header.png) */
.header-logo { max-width: none; }
.dil-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.dil-logo:hover, .dil-logo:focus { color: #fff; text-decoration: none; }
.dil-logo-mark { flex: none; display: block; width: 46px; height: 46px; }
.dil-logo-text { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.dil-logo-text i { font-style: normal; font-weight: 500; color: #7fe3cf; }
@media screen and (max-width: 767px) {
	.dil-logo { gap: 10px; }
	.dil-logo-mark { width: 38px; height: 38px; }
	.dil-logo-text { font-size: 22px; }
}

/* "How to improve your English" box – icons, numbered steps */
.dil-howto { padding: 28px 26px 18px; }
.dil-howto h3 { margin: 0 0 18px; }
.dil-howto-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dil-howto-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--dil-line);
	border-radius: 12px;
	background: #fbfdfc;
}
.dil-howto-icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #e6f6f2;
	color: var(--dil-green-dark);
}
.dil-howto-body { min-width: 0; }
.dil-howto-body h4 { margin: 2px 0 8px; font-size: 18px; font-weight: 700; color: var(--dil-ink); text-transform: none; }
.dil-howto-steps { list-style: none; margin: 0; padding: 0; counter-reset: dilstep; }
.dil-howto-steps li { position: relative; margin: 0 0 8px; padding-left: 34px; line-height: 1.55; color: #3d4a47; }
.dil-howto-steps li:last-child { margin-bottom: 0; }
.dil-howto-steps li::before {
	counter-increment: dilstep;
	content: counter(dilstep);
	position: absolute;
	left: 0;
	top: 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--dil-green);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}
.dil-howto-steps a { font-weight: 600; }
@media (min-width: 768px) {
	.dil-howto-list { grid-template-columns: 1fr 1fr; }
	.dil-howto-item:first-child { grid-column: 1 / -1; }
}
@media screen and (max-width: 600px) {
	.dil-howto { padding: 20px 16px 12px; }
	.dil-howto-item { gap: 12px; padding: 14px; }
	.dil-howto-icon { width: 42px; height: 42px; }
}

/* Audio player directly under the article text (after "Difficult words") */
.upper-content .video-wrap { margin: 20px 0 0; border-radius: 12px; overflow: hidden; }
.upper-content .video-wrap:empty { display: none; }
.upper-content .video-wrap + .dil-daynav { margin-top: 22px; }

/* ---------- Footer: © and RSS side by side on the left, links on the right (same as newsinlevels.com) ---------- */
.main-footer .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; }
.main-footer .row::before, .main-footer .row::after { display: none; }
.main-footer .row > [class*="col-"] { float: none; width: auto; padding: 0; }
.main-footer .row > .col-sm-4, .main-footer .row > .col-sm-2 { flex: 0 0 auto; }
.main-footer .row > .col-sm-6 { flex: 1 1 auto; }
.main-footer .footer-copyright p { text-align: left !important; }
.main-footer .social-links { margin: 0; text-align: left; }
.main-footer .social-links ul { display: flex; gap: 8px; margin: 0; padding: 0; }
.main-footer .social-links ul li { margin: 0; }
/* RSS: pill with an orange RSS icon and the word "RSS" */
.main-footer .social-links ul li.rss a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	width: auto;
	height: 32px;
	padding: 0 13px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	color: #cbd5e1;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.main-footer .social-links ul li.rss a .dil-icon { width: 13px; height: 13px; color: #fb923c; }
.main-footer .social-links ul li.rss a::after { content: "RSS"; }
.main-footer .social-links ul li.rss a:hover,
.main-footer .social-links ul li.rss a:focus { background: rgba(255, 255, 255, .16); color: #fff; transform: none; }
.main-footer .footer-legal { text-align: right; }
.main-footer .footer-legal ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; margin: 0; padding: 0; }
.main-footer .footer-legal ul li, .main-footer .footer-legal ul li:first-child { display: block; margin: 0; }
@media screen and (max-width: 767px) {
	/* © and RSS on one line, centred, links under them */
	.main-footer .row { justify-content: center; gap: 8px 14px; text-align: center; }
	.main-footer .row > .col-sm-6 { flex: 1 1 100%; }
	.main-footer .social-links ul li.rss a { height: 28px; padding: 0 11px; }
	.main-footer .footer-legal { text-align: center; }
	.main-footer .footer-legal ul { justify-content: center; gap: 2px 14px; }
}
