/* ==========================================================================
   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,
div#taboola-below-article-thumbnails {
	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 ---------- */
.fancy-buttons ul { display: flex; flex-wrap: wrap; gap: 8px; }
.fancy-buttons ul li,
.news-block.highlighted .fancy-buttons ul li { display: block; margin: 0; }
.fancy-buttons ul li a,
.news-block.highlighted .fancy-buttons ul li a {
	display: block;
	padding: 6px 16px;
	border-radius: 999px;
	border: 1px solid #bfe5dc;
	background: #e6f6f2;
	color: var(--dil-green-dark);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
}
.news-block.highlighted .fancy-buttons ul li a { padding: 8px 22px; font-size: 15px; }
.fancy-buttons ul li a:hover,
.fancy-buttons ul li a:focus,
.fancy-buttons ul li a:active,
.fancy-buttons ul li.active a {
	background: var(--dil-green);
	border-color: var(--dil-green);
	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; }
.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; }
.fancy-facebook-block .title { padding: 0 0 14px; }
.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 "taboola" 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; }
}
