/* =========================================================
   SmartBee — IELTS Materials & Resources page styles
   Builds on the shared tokens/components in main.css and destination.css.
   Structurally very close to the "All IELTS Materials" section already
   built for template-ielts-packages.php (same search/filter/card/pagination
   pattern) — this file duplicates those rules (self-contained stylesheet,
   same approach as ielts-packages.css) rather than cross-loading that
   template's CSS, plus adds the expandable-looking filter categories and
   the sidebar intro blurb unique to this page.
   ========================================================= */

.sbe-page-single { max-width: var(--sbe-container); margin: 0 auto; padding: 0 24px; }

/* ---------- Hero note + share row ---------- */
.sbe-hero-note { max-width: 380px; color: rgba(255, 255, 255, .92); font-size: 14.5px; line-height: 1.5; animation: sbe-fade-up .7s ease .28s both; }
.sbe-hero-overlay { background: linear-gradient(180deg, rgba(30,6,48,.58) 0%, rgba(30,6,48,.42) 45%, rgba(18,4,30,.7) 100%); }
.sbe-hero-share { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.sbe-hero-share span:first-child { font-size: 13px; color: rgba(255,255,255,.85); }
.sbe-hero-share .sbe-share-icons { display: flex; gap: 8px; }
.sbe-hero-share .sbe-share-icons a {
	width: 30px; height: 30px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,.5);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.sbe-hero-share .sbe-share-icons a:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }
.sbe-hero-share .sbe-icon { width: 13px; height: 13px; }

/* ---------- Materials head row ---------- */
.sbe-materials-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.sbe-materials-head h2 { margin: 0; }
.sbe-materials-search { position: relative; flex: 1 1 320px; max-width: 460px; }
.sbe-materials-search input {
	width: 100%;
	border: none;
	border-bottom: 1px solid var(--sbe-lavender-300);
	padding: 8px 44px 8px 4px;
	font-family: var(--sbe-font-body);
	font-size: 14px;
	color: var(--sbe-text);
	background: transparent;
}
.sbe-materials-search input:focus { outline: none; border-bottom-color: var(--sbe-purple-500); }
.sbe-materials-search input::placeholder { color: var(--sbe-text-light); }
.sbe-materials-search button {
	position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	width: 34px; height: 34px;
	border: none; border-radius: 50%;
	background: var(--sbe-purple-700);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer;
}
.sbe-materials-search .sbe-icon { width: 15px; height: 15px; }
.sbe-materials-date { display: flex; align-items: center; gap: 6px; color: var(--sbe-text-light); font-size: 14px; flex-shrink: 0; }
.sbe-materials-date strong { color: var(--sbe-purple-700); font-weight: 600; }
.sbe-materials-date .sbe-icon { width: 14px; height: 14px; color: var(--sbe-purple-600); }

.sbe-materials-body { display: grid; grid-template-columns: 240px 1fr; gap: 40px; margin-top: 30px; align-items: start; }

/* ---------- Category filters (expandable-looking rows) ---------- */
.sbe-materials-filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sbe-materials-filters-head a { color: var(--sbe-purple-600); font-weight: 600; font-size: 14px; }
.sbe-materials-filters-head .sbe-icon { width: 15px; height: 15px; color: var(--sbe-purple-600); }
.sbe-materials-filters ul { list-style: none; margin: 10px 0 0; padding: 0; }
.sbe-materials-filters li { border-bottom: 1px solid var(--sbe-lavender-300); }
.sbe-materials-filters a {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 13px 2px;
	color: var(--sbe-text);
	font-size: 15px;
	transition: color .18s ease;
}
.sbe-materials-filters a:hover, .sbe-materials-filters a.is-active { color: var(--sbe-purple-700); font-weight: 600; }
.sbe-materials-filters a .sbe-icon { width: 15px; height: 15px; color: var(--sbe-text-light); flex-shrink: 0; }

/* Sidebar intro blurb (labelled "All IELTS Materials" in the source design —
   sits below the category list, above the eligibility box). */
.sbe-materials-intro { margin-top: 26px; }
.sbe-materials-intro h3 { font-size: 19px; color: var(--sbe-purple-700); margin-bottom: 10px; }
.sbe-materials-intro p { color: var(--sbe-text-light); font-size: 14px; margin-bottom: 0; }

.sbe-eligibility-box {
	margin-top: 22px;
	border-radius: var(--sbe-radius);
	overflow: hidden;
	padding: 26px 24px;
	background-color: var(--sbe-purple-700);
	background-image: url('../images/eligibility-bg.jpg');
	background-size: cover;
	background-position: center;
}
.sbe-eligibility-box strong { display: block; color: #fff; font-size: 19px; margin-bottom: 8px; }
.sbe-eligibility-box p { color: rgba(255,255,255,.85); font-size: 13.5px; margin-bottom: 20px; }
.sbe-eligibility-box .sbe-btn-white { color: var(--sbe-purple-700); }

/* ---------- Material cards ---------- */
.sbe-material-list { display: flex; flex-direction: column; gap: 18px; }
.sbe-material-card {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 24px;
	background: #fff;
	border: 1px solid var(--sbe-lavender-300);
	border-radius: var(--sbe-radius);
	padding: 16px;
	padding-right: 30px;
	box-shadow: var(--sbe-shadow);
	transition: box-shadow .2s ease, transform .2s ease;
	overflow: hidden;
}
.sbe-material-card:hover { box-shadow: var(--sbe-shadow-lg); transform: translateY(-2px); }
.sbe-material-card::after {
	content: "";
	position: absolute; top: 0; right: 0; bottom: 0;
	width: 6px;
	background: var(--sbe-purple-700);
}
.sbe-material-thumb { flex-shrink: 0; width: 220px; border-radius: var(--sbe-radius-sm); overflow: hidden; }
.sbe-material-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sbe-material-content { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 6px 0; }
.sbe-material-content h3 { margin: 0; font-size: 18px; color: var(--sbe-text); }
.sbe-material-content p { margin: 0; color: var(--sbe-text-light); font-size: 14px; }
.sbe-material-content .sbe-btn { align-self: flex-start; margin-top: 6px; }

/* ---------- Pagination ---------- */
.sbe-pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 34px; flex-wrap: wrap; }
.sbe-pagination-nums { display: flex; align-items: center; gap: 8px; }
.sbe-pagination-nums a, .sbe-pagination-nums span {
	min-width: 34px; height: 34px;
	border-radius: 8px;
	display: flex; align-items: center; justify-content: center;
	font-size: 14px;
	color: var(--sbe-text);
	background: var(--sbe-lavender-100);
}
.sbe-pagination-nums a.is-active { background: var(--sbe-purple-700); color: #fff; font-weight: 600; }
.sbe-pagination-nums .sbe-pagination-dots { background: transparent; color: var(--sbe-text-light); }
.sbe-pagination .sbe-btn { padding: 10px 22px; }

/* ---------- CTA band (same graphic as the other IELTS pages) ---------- */
.sbe-cta-band-ielts {
	background-color: var(--sbe-purple-700);
	background-image: url('../images/cta-band-ielts.png');
	background-size: cover;
	background-position: center;
	min-height: 460px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 0;
}
.sbe-cta-band-ielts .sbe-cta-inner { z-index: 1; width: 100%; }
.sbe-cta-band-ielts h2 { color: #fff; }
.sbe-cta-band-ielts h2 .sbe-cta-highlight { color: var(--sbe-gold-500); }
.sbe-cta-band-ielts .sbe-cta-desc { color: rgba(255, 255, 255, .82); }
.sbe-cta-band-ielts .sbe-cta-buttons { position: relative; margin-top: 8px; }

@media (max-width: 960px) {
	.sbe-materials-body { grid-template-columns: 1fr; }
	.sbe-material-card { flex-direction: column; }
	.sbe-material-thumb { width: 100%; height: 160px; }
}

@media (max-width: 600px) {
	.sbe-materials-head { flex-direction: column; align-items: flex-start; }
	.sbe-pagination { justify-content: center; }
}
