/* Adstone Construction - shared responsive page design */
body { margin: 0; padding: 0; background: #fff; }
#adstone-page { box-sizing: border-box; width: 100%; padding: 0 clamp(24px, 4vw, 88px); margin: 0 auto; background: #fff; color: #252a2e; font: 17px/1.55 "Segoe UI", Arial, sans-serif; }
#adstone-page .adstone-masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 3px solid #b91f28; }
.adstone-brand { display: block; flex: 0 0 auto; }
.adstone-brand img { display: block; width: clamp(135px, 11vw, 178px); height: auto; }
.adstone-nav { min-width: 0; }
.adstone-nav ul { list-style: none; margin: 0; padding: 0; }
.adstone-nav > div > ul, .adstone-nav ul.mainNav1, .adstone-nav > ul { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 4px clamp(12px, 1.9vw, 36px); }
.adstone-nav li { position: relative; list-style: none; margin: 0; padding: 0; }
.adstone-nav a { display: block; padding: 10px 0; border-bottom: 2px solid transparent; color: #252a2e; font: 600 17px/1.3 "Segoe UI", Arial, sans-serif; text-decoration: none; }
.adstone-nav a.current, .adstone-nav a.parent, .adstone-nav a:hover, .adstone-nav a:focus { color: #a91c25; border-bottom-color: #b91f28; }
.adstone-nav li ul { display: none; position: absolute; z-index: 12; left: 0; top: 100%; min-width: 190px; background: #fff; border: 1px solid #d7dcde; padding: 6px 12px; }
.adstone-nav li:hover > ul, .adstone-nav li:focus-within > ul { display: block; }
.adstone-nav li ul li ul { left: 100%; top: 0; }
.adstone-banner { width: 100%; }
#adstone-page .adstone-banner #emotion-header { position: relative; width: 100% !important; max-width: none !important; height: clamp(180px, 28vw, 470px) !important; max-height: none !important; overflow: hidden; margin: 0; }
#adstone-page .adstone-banner #emotion-header-img, #adstone-page .adstone-banner .slide-container img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: center; }
#adstone-page .adstone-banner #emotion-header[data-imagescount="1"] #emotion-header-img { display: block !important; opacity: 1 !important; visibility: visible !important; }
#adstone-page .adstone-banner #emotion-header[data-imagescount="1"] #ehSlideshowPlaceholder { display: none !important; }
.adstone-main { padding: clamp(20px, 2.3vw, 42px) 0 12px; min-width: 0; }
.adstone-main p, .adstone-main li, .adstone-secondary p { font-family: "Segoe UI", Arial, sans-serif; line-height: 1.55; }
.adstone-main h1, .adstone-main h2, .adstone-main h3, .adstone-main h4 { color: #242a2d; font-family: "Segoe UI", Arial, sans-serif; font-weight: 650; line-height: 1.23; margin: 0.45em 0; }
.adstone-main h1 { font-size: clamp(28px, 2.8vw, 44px); }
.adstone-main h2 { font-size: clamp(21px, 1.7vw, 29px); }
.adstone-main h3 { font-size: 20px; }
.adstone-main img, .adstone-secondary img, .adstone-main iframe { max-width: 100%; }
.adstone-main .hr { border: 0; border-top: 1px solid #d8dcdd; }
#textWithImage-5777742637 { display: grid; grid-template-columns: minmax(90px,1fr) minmax(0,78ch) minmax(90px,1fr); align-items: center; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid #d8dcdd; }
#textWithImage-5777742637 .textwrapper { grid-column: 2; grid-row: 1; text-align: center; }
#textWithImage-5777742637 .textwrapper p { text-align: center; margin: 0; font-size: 18px; }
#textWithImage-5777742637 .imgright { grid-column: 3; grid-row: 1; justify-self: center; margin: 0; }
#matrix_1023854401 .diyfeModGrid3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(14px, 2vw, 32px); margin: 26px 0 0; }
#matrix_1023854401 .diyfeModGrid3:before, #matrix_1023854401 .diyfeModGrid3:after { display: none; }
#matrix_1023854401 .diyfeModGridElement { width: auto !important; min-width: 0; margin: 0; padding: 0; }
#matrix_1023854401 .diyfeModGridContent { margin: 0; padding: 0; }
#matrix_1023854401 .imageSubtitle .align-container, #matrix_1023854401 .imageSubtitle img { display: block; width: 100% !important; max-width: 100% !important; }
#matrix_1023854401 .imageSubtitle img { aspect-ratio: 16 / 10; object-fit: cover; }
#matrix_1023854401 .module-type-header h2 { text-align: center; font-size: clamp(19px, 1.5vw, 25px); }
.adstone-accreditations { display: none; padding: 16px 0 22px; border-top: 1px solid #d8dcdd; text-align: center; }
#page-919348138 .adstone-accreditations, #page-919348143 .adstone-accreditations { display: block; }
.adstone-accreditations img { display: block; float: none; margin: 0 auto !important; width: 460px; max-width: 94%; height: auto; }
.adstone-footer { padding: 18px 12px; border-top: 1px solid #d8dcdd; text-align: center; color: #41474b; font-size: 14px; }
.adstone-footer a { color: inherit; }
#adstone-page .adstone-accreditations img { display: block; float: none; margin-left: auto !important; margin-right: auto !important; }
@media (min-width: 1000px) {
  #adstone-page .adstone-masthead { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
  .adstone-brand { grid-column: 1; justify-self: start; }
  .adstone-nav { grid-column: 2; justify-self: center; }
  .adstone-nav ul.mainNav1 { justify-content: center; }
}
@media (min-width: 761px) and (max-width: 999px) {
  #adstone-page .adstone-masthead { flex-direction: column; gap: 4px; }
  .adstone-nav ul.mainNav1 { justify-content: center; }
}
@media (max-width: 760px) {
  #adstone-page { padding: 0 14px; }
  #adstone-page .adstone-masthead { flex-direction: column; align-items: center; gap: 5px; padding: 8px 0; }
  .adstone-brand img { width: 112px; }
  .adstone-nav > div > ul, .adstone-nav ul.mainNav1, .adstone-nav > ul { justify-content: center; gap: 0 16px; }
  .adstone-nav a { font-size: 15px; padding: 8px 0; }
  .adstone-nav li ul { left: auto; right: 0; min-width: 140px; }
  #textWithImage-5777742637 { display: flex; flex-direction: column-reverse; gap: 12px; }
  #textWithImage-5777742637 .imgright { float: none; align-self: center; }
  #matrix_1023854401 .diyfeModGrid3 { grid-template-columns: 1fr; }
  .adstone-main .diyfeModGridElement { float: none; width: 100% !important; box-sizing: border-box; }
  .adstone-main { padding-top: 18px; }
}
/* Show the active section’s native child pages on a centred second row. */
.adstone-nav ul.mainNav1 > li:has(> ul.mainNav2) { order: 2; flex: 0 0 100%; }
.adstone-nav ul.mainNav1 > li > ul.mainNav2, .adstone-nav ul.mainNav2 ul { display: flex; position: static; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 16px; min-width: 0; padding: 2px 0; border: 0; background: none; }
.adstone-nav ul.mainNav2 a { padding: 6px 0; color: #96202a; font-size: 15px; }
@media (min-width: 1000px) { .adstone-nav { max-width: min(66vw, 960px); } }