/* Extra styles for the news, gallery, contact and social parts of the iLEAD site. */
:root { --il-green: #17B794; --il-dark: #012725; --il-line: #e4ece9; }

/* social buttons */
.ilead-social { list-style: none; margin: 14px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ilead-social li { margin: 0; }
.ilead-social a { display: inline-block; padding: 6px 14px; border: 1px solid var(--il-green); border-radius: 20px; color: var(--il-dark); font-size: 14px; line-height: 1.4; }
.ilead-social a:hover { background: var(--il-green); color: #fff; text-decoration: none; }
.ilead-social-footer a { border-color: rgba(255,255,255,.7); color: #fff; }
.ilead-social-footer a:hover { background: #fff; color: var(--il-dark); }

/* gallery */
.ilead-gallery-grid { margin-bottom: 20px; }
.ilead-gallery-item { display: block; position: relative; margin-bottom: 30px; overflow: hidden; border-radius: 4px; background: #eee; }
.ilead-gallery-item img { display: block; width: 100%; height: 260px; object-fit: cover; transition: transform .3s; }
.ilead-gallery-item:hover img { transform: scale(1.04); }
.ilead-gallery-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-size: 14px; }

/* news */
.ilead-news-tabs, .ilead-news-pager { list-style: none; margin: 0 0 30px; padding: 0; }
.ilead-news-tabs li, .ilead-news-pager li { display: inline-block; margin: 0 4px 8px; }
.ilead-news-tabs a, .ilead-news-pager a { display: inline-block; padding: 6px 18px; border: 1px solid var(--il-line); border-radius: 20px; color: var(--il-dark); }
.ilead-news-tabs .active a, .ilead-news-pager .active a, .ilead-news-tabs a:hover, .ilead-news-pager a:hover { background: var(--il-green); border-color: var(--il-green); color: #fff; text-decoration: none; }
.ilead-news-card { margin-bottom: 30px; background: #fff; border: 1px solid var(--il-line); border-radius: 4px; overflow: hidden; height: calc(100% - 30px); }
.ilead-news-grid .col-md-4 { display: flex; }
.ilead-news-grid .col-md-4 .ilead-news-card { width: 100%; }
.ilead-news-img { display: block; height: 210px; background: #ddd center / cover no-repeat; }
.ilead-news-body { padding: 18px 20px 22px; }
.ilead-news-body h3 { margin: 8px 0 4px; font-size: 20px; line-height: 1.3; }
.ilead-news-body h3 a { color: var(--il-dark); }
.ilead-news-date { color: #777; font-size: 13px; margin-bottom: 10px; }
.ilead-news-tag { display: inline-block; padding: 2px 10px; border-radius: 3px; background: var(--il-green); color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.ilead-news-more { font-weight: 700; }
.ilead-news-meta { color: #777; }
.ilead-event-date { font-size: 18px; color: var(--il-dark); }
.ilead-news-cover { margin: 10px auto 25px; border-radius: 4px; }
.ilead-share { margin: 30px 0 20px; }
.ilead-richtext { font-size: 17px; line-height: 1.75; }
.ilead-richtext img { max-width: 100%; height: auto; margin: 15px 0; border-radius: 4px; }
.ilead-richtext h2, .ilead-richtext h3 { margin-top: 28px; }
.ilead-richtext blockquote { border-left: 4px solid var(--il-green); padding: 4px 18px; color: #555; font-size: 17px; }
.ilead-custom .ilead-heading { margin-bottom: 20px; }

/* contact form */
.ilead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ilead-notice { padding: 18px 22px; border-radius: 4px; margin-bottom: 25px; }
.ilead-notice h3 { margin-top: 0; }
.ilead-notice ul { margin: 0; padding-left: 20px; }
.ilead-notice-ok { background: #e8f8f3; border: 1px solid var(--il-green); }
.ilead-notice-err { background: #fdecea; border: 1px solid #d9534f; }

/* outline buttons on a white page: the theme's version is white text, which disappears */
.ilead-section .btn-special.btn-outline { color: var(--il-dark); border-color: var(--il-green); background: transparent; }
.ilead-section .btn-special.btn-outline:hover, .ilead-section .btn-special.btn-outline:focus { color: #fff; background: var(--il-green); }

/* ---------- page-builder blocks ---------- */
.ilead-block { padding: 1.4em 0; float: left; width: 100%; }
.ilead-block.ilead-gray, .ilead-section.ilead-gray { background: #f6f9f8; }
.ilead-richtext { overflow-wrap: anywhere; }
.ilead-richtext p:last-child { margin-bottom: 0; }
.ilead-richtext ul, .ilead-richtext ol { text-align: left; display: inline-block; max-width: 100%; }
.ilead-staff .ilead-richtext ul, .ilead-staff .ilead-richtext ol { display: block; }
.ilead-hero-sub p { margin-bottom: 12px !important; }
.ilead-img-medium { max-width: 760px; margin: 0 auto; }
.ilead-img-small { max-width: 420px; margin: 0 auto; }
.ilead-staff img { border-radius: 4px; }
.ilead-it { display: flex; flex-wrap: wrap; align-items: center; }
.ilead-it-pic img { border-radius: 6px; width: 100%; height: auto; }
@media (max-width: 991px) { .ilead-it-pic { margin-bottom: 20px; } }
.ilead-cards .service p:last-child { margin-bottom: 0; }

.ilead-cta-block { text-align: center; float: left; width: 100%; padding: 4em 0; }
.ilead-cta-block h2 { margin-top: 0; }
.ilead-cta-green { background: linear-gradient(to right, #3dcdbc, #33a1bd); color: #fff; }
.ilead-cta-green h2, .ilead-cta-dark h2 { color: #fff; }
.ilead-cta-dark { background: #012725; color: #d8efe9; }
.ilead-cta-gray { background: #f6f9f8; }
.ilead-cta-light { background: #fff; }

.ilead-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 24px; margin-top: 10px; }
.ilead-logo { width: 190px; text-align: center; }
.ilead-logo img { max-width: 100%; max-height: 120px; width: auto; margin: 0 auto 10px; display: block; }
.ilead-logo a { color: inherit; display: block; }
.ilead-logo-name { display: block; font-size: 15px; line-height: 1.35; font-weight: 600; }

.ilead-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 6px; background: #000; }
.ilead-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ilead-caption { margin-top: 12px; color: #666; font-size: 14px; }
.ilead-quote { border: 0; padding: 0; font-size: 24px; line-height: 1.5; color: #012725; }
.ilead-quote footer { margin-top: 14px; font-size: 15px; color: #666; }
.ilead-quote footer::before { content: "\2014\00a0"; }
.ilead-spacer hr { margin: 0; border-top: 1px solid #d5e2de; position: relative; top: 50%; }
.ilead-spacer { float: left; width: 100%; }
.ilead-social-center { justify-content: center; }
.ilead-placeholder { border: 2px dashed #b7c8c2; border-radius: 8px; padding: 30px 16px; text-align: center; color: #6a7b77; background: #fafcfb; }
.ilead-gallery-section, .ilead-contact-section, .ilead-news-strip { float: left; width: 100%; }

/* ---------- news and events made prominent ---------- */
.ilead-announce { background: #012725; color: #fff; text-align: center; padding: 9px 16px; font-size: 14.5px; line-height: 1.4; position: relative; z-index: 1000; }
.ilead-announce a { color: #fff; text-decoration: none; font-weight: 600; }
.ilead-announce a:hover { text-decoration: underline; color: #fff; }
.ilead-nav .menu-1 li.nav-highlight > a { background: #17B794; color: #fff !important; border-radius: 3px; padding: 6px 12px !important; }
.ilead-nav .menu-1 li.nav-highlight > a:hover, .ilead-nav .menu-1 li.nav-highlight.active > a { background: #0b7a63; color: #fff !important; }
.ilead-nav .menu-1 li.nav-highlight > a::after { display: none !important; }

.ilead-news-featured { background: #012725; }
.ilead-feature { display: flex; flex-wrap: wrap; background: #fff; border: 1px solid #e4ece9; border-radius: 6px; overflow: hidden; margin-bottom: 30px; }
.ilead-feature-img { flex: 1 1 52%; min-height: 320px; background: #ddd center / cover no-repeat; display: block; }
.ilead-feature-body { flex: 1 1 44%; padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; }
.ilead-feature.no-img .ilead-feature-body { flex-basis: 100%; }
.ilead-feature h3 { font-size: 30px; line-height: 1.2; margin: 14px 0 6px; }
.ilead-feature h3 a { color: #012725; }
.ilead-feature .btn { align-self: flex-start; margin-top: 8px; }
@media (max-width: 767px) { .ilead-feature-img { min-height: 220px; flex-basis: 100%; } .ilead-feature-body { padding: 24px 22px; } .ilead-feature h3 { font-size: 24px; } }

.ilead-events { float: left; width: 100%; background: #f6f9f8; }
.ilead-event { display: flex; align-items: center; gap: 22px; padding: 18px 22px; margin-bottom: 14px; background: #fff; border: 1px solid #e0e9e6; border-left: 4px solid #17B794; border-radius: 4px; color: inherit; text-decoration: none; transition: box-shadow .15s; }
.ilead-event:hover { box-shadow: 0 4px 16px rgba(1, 39, 37, .1); text-decoration: none; color: inherit; }
.ilead-evdate { flex: none; width: 66px; text-align: center; line-height: 1; padding: 10px 0; border-radius: 4px; background: #012725; color: #bfe9de; font-size: 12px; letter-spacing: .08em; font-weight: 700; }
.ilead-evdate b { display: block; font-size: 28px; color: #fff; margin-bottom: 4px; letter-spacing: 0; }
.ilead-evbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ilead-evbody strong { font-size: 19px; color: #012725; }
.ilead-evbody span { color: #555; font-size: 14px; }
.ilead-evbody em { font-style: normal; color: #666; font-size: 14.5px; }
.ilead-evmore { flex: none; color: #0b7a63; font-weight: 700; }
@media (max-width: 600px) { .ilead-event { flex-wrap: wrap; gap: 14px; } .ilead-evmore { width: 100%; } }
