/*
Theme Name: WELS
Template: twentytwentyfive
Description: Western English Language School child theme of Twenty Twenty-Five. Brand colours, fonts, header, footer and page header layout. No third-party theme code.
Version: 1.0.0
Requires at least: 6.7
Text Domain: wels
*/

/* ---------- Header ---------- */
.wels-topbar { text-align: right; font-size: 13px; min-height: 68px; display: flex; align-items: center; }
.wels-topbar > * { width: 100%; }
.wels-topbar select { font-size: 12px; padding: 1px 2px; }
.wels-mainbar { border-bottom: 1px solid #ececec; padding-top: 18px; padding-bottom: 18px; }
.wels-nav { font-size: 17px; }
.wels-nav .wp-block-navigation-item__content { color: #0a0a0a; text-decoration: none; }
.wels-nav .wp-block-navigation-item__content:hover { color: #bf1616; }
.wels-nav ul.wp-block-navigation__container { gap: 0; }
.wels-nav ul.wp-block-navigation__container > .wp-block-navigation-item { padding: 0 24px; }
.wels-nav ul.wp-block-navigation__container > .wp-block-navigation-item + .wp-block-navigation-item::before { content: ""; position: absolute; left: 0; top: 50%; height: 14px; margin-top: -7px; border-left: 1px solid #e3e3e3; }
.wels-nav ul.wp-block-navigation__container > .wp-block-navigation-item:last-child { padding-right: 10px; }
.wels-nav .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: 0 4px 14px rgba(0,0,0,.12); min-width: 230px !important; padding: 8px 0; font-size: 14px; }
.wels-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 8px 18px !important; }
.wels-nav .wp-block-navigation__submenu-icon { display: none; }
.wels-search .wp-block-search__button { background: transparent; color: #9a9a9a; padding: 4px; border: 0; }
.wels-search .wp-block-search__button svg { width: 30px; height: 30px; }

/* ---------- Page header (featured image + title) ---------- */
.wels-page-header { margin-top: 0 !important; }
.wels-page-header .wp-block-cover__inner-container { width: 100% !important; max-width: 1210px !important; margin-left: auto !important; margin-right: auto !important; padding: 70px 20px 0 !important; }
.wels-page-header .wels-page-title { font-family: var(--wp--preset--font-family--montserrat); font-size: clamp(36px, 5vw, 60px); font-weight: 700; line-height: 1.1; margin: 0 0 10px; color: #fff; text-align: left; }
/* Pages without a featured image: no banner, like the old site (the heading shows above the content) */
.wels-page-header:not(:has(img)), .wels-page-header:not(:has(img)) + .wels-breadcrumbs { display: none; }
.wels-content-title { font-size: clamp(28px, 3vw, 34px); font-weight: 700; margin: 0 0 20px; }
.wels-breadcrumbs { border-bottom: 1px solid #ececec; padding-top: 14px; padding-bottom: 14px; font-size: 15px; margin-top: 0 !important; }
.wels-breadcrumbs a { text-decoration: none; }
.wels-breadcrumbs .sep { color: #b5b5b5; margin: 0 12px; }
.wels-main { padding-top: 50px; padding-bottom: 60px; margin-top: 0 !important; }
.home .wels-main { padding-top: 0; }
.wels-main > .wp-block-post-content > .alignfull:first-child { margin-top: 0; }

/* ---------- Content converted from the old page builder ---------- */
.wels-row { margin-bottom: 35px; }
.wels-row > .wp-block-column > * + * { margin-top: 1.2rem; }
.wels-button { display: inline-block; background: #bf1616; color: #fff !important; border-radius: 10px; padding: 10px 20px; text-decoration: underline; line-height: 1.4; }
.wels-button:hover { opacity: .88; }
.wels-button-wrap { margin: 20px 0; }
.wels-service { display: grid; grid-template-columns: 50px 1fr; column-gap: 18px; margin-bottom: 30px; }
.wels-service img { width: 50px; height: auto; grid-row: span 2; }
.wels-service h3 { margin: 6px 0 12px; font-weight: 700; font-size: 20px; }
.wels-service p { margin: 0; font-size: 14px; line-height: 1.65; }
.wp-block-post-content img.aligncenter, .wp-block-post-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-block-post-content .alignleft { float: left; margin: 0 1.5em 1em 0; }
.wp-block-post-content .alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption { max-width: 100%; border: 1px solid #f0f0f0; padding: 5px; background: #fff; }
.wp-caption img { display: block; max-width: 100%; height: auto; }
.wp-caption-text, .wp-caption .wp-caption-text { font-size: 12px; text-align: center; margin: 6px 0 2px; }
.wp-block-post-content table { border-collapse: collapse; }
.wp-block-post-content hr { border: 0; border-top: 1px solid #e2e2e2; margin: 30px 0; }

/* ---------- Home hero (replaces the old slider, CSS only) ---------- */
.wels-hero { position: relative; height: clamp(220px, 35vw, 480px); overflow: hidden; margin-top: 0 !important; margin-bottom: 35px; }
.wels-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: wels-fade 30s infinite; }
.wels-hero img:nth-child(1) { animation-delay: 0s; }
.wels-hero img:nth-child(2) { animation-delay: 6s; }
.wels-hero img:nth-child(3) { animation-delay: 12s; }
.wels-hero img:nth-child(4) { animation-delay: 18s; }
.wels-hero img:nth-child(5) { animation-delay: 24s; }
@keyframes wels-fade { 0% { opacity: 0; } 3% { opacity: 1; } 20% { opacity: 1; } 23% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wels-hero img { animation: none; } .wels-hero img:first-child { opacity: 1; } }

/* ---------- Footer ---------- */
.wels-footer { min-height: 18px; margin-top: 0 !important; }

@media (max-width: 781px) {
	.wels-nav > .wp-block-navigation__container > .wp-block-navigation-item { border-left: 0 !important; padding: 0; }
	.wels-main { padding-top: 30px; }
}

/* ---------- Carried over from the old site's Additional CSS ---------- */
.wp-block-post-content a { text-decoration: underline; }
.wp-block-post-content h2 { line-height: 40px; margin: 20px 0; }
.wp-block-post-content h3 { line-height: 35px; }
.wp-block-post-content h4 { margin-top: 10px; margin-bottom: 10px; color: #2d2d2d; }
td.siteLocation { width: 140px; }
.wp-block-post-content table { width: 100%; }
.wp-block-post-content td, .wp-block-post-content th { vertical-align: top; }
table.interpreter-info th, table.interpreter-info td { padding: 10px; }
table#child-safe-table td { padding: 10px; border: solid 1px grey; vertical-align: top; width: 50%; }
table.policy-review, table.policy-review th, table.policy-review td { border: 1px solid; }
.policy-period { font-size: 12px; color: darkgray; }
body.parent-pageid-18 .wp-block-post-content h3 { font-size: 20px; font-weight: bold; color: #5b9bd5; margin-top: 20px; margin-bottom: 20px; text-transform: uppercase; }
body.parent-pageid-18 .wp-block-post-content h4 { font-size: 18px; font-weight: bold; color: #5b9bd5; margin-top: 30px; margin-bottom: 20px; }
body.parent-pageid-18 .wp-block-post-content h5 { font-weight: bold; text-decoration: underline; color: #000; margin-top: 20px; margin-bottom: 20px; }
body.parent-pageid-18 .wp-block-post-content p { margin-top: 10px; margin-bottom: 10px; }
body.page-id-27 .vc_custom_1532492287089 { background-color: #f9f9f9; padding: 20px 20px 20px 30px !important; border-radius: 20px; margin-left: 70px !important; }

/* ---------- Contact Form 7 (old site form style) ---------- */
.wpcf7-form p { padding-bottom: 10px; margin: 0; }
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"], .wpcf7-form input[type="url"], .wpcf7-form input[type="number"], .wpcf7-form input[type="date"], .wpcf7-form select, .wpcf7-form textarea {
	background: #fff; border: 2px solid #c8c8c8; border-radius: 0; padding: 10px 20px; color: #a3a3a3; font: inherit; font-size: 15px; max-width: 100%; box-sizing: border-box;
}
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form textarea { width: 100%; max-width: 380px; }
.wpcf7-form textarea { max-width: 400px; height: 160px; }
.wpcf7-form input[type="submit"] { background: #90cbde; color: #fff; border: 0; border-radius: 3px; padding: 10px 20px; font: inherit; cursor: pointer; }
