/*
Theme Name:   Charifund Child
Theme URL:    https://wowtheme7.com/charifund-child/
Description:  Charity WordPress Theme
Author:       wowtheme7
Author URL:   https://wowtheme7.com/
Template:     charifund
Version:      2.1
License:      GNU General Public License v2 or later
License URL:  http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain:  charifundchildtheme
*/

/*
    Please Add your custom styles here
*/
/* ==========================================================================
   The Safety Drive — brand layer (2026-10-02)
   Green #3D6E10 / dark #1B3006 / red #C00000 / yellow #FFC107
   ========================================================================== */
:root {
  --main-color-one: #3D6E10;
  --heading-color: #1B3006;
  --secondary-colorx: #1B3006;
  --tsd-green: #3D6E10;
  --tsd-dark: #1B3006;
  --tsd-red: #C00000;
  --tsd-yellow: #FFC107;
  --tsd-tint: #F3F7EC;
}

/* Header logo sizing */
.site-header .logo img, .navbar-brand img, .header-logo img, .logo img { max-height: 58px; width: auto; }
.footer .logo img, footer .footer__logo img, footer .logo img { max-height: 64px; width: auto; }

/* Media coverage link lists */
.tsd-media-list { display: flex; flex-direction: column; }
.tsd-media-row {
  display: grid; grid-template-columns: 1fr auto 18px; align-items: center; gap: 12px;
  padding: 13px 4px; border-bottom: 1px solid #E3EAD8; color: var(--tsd-dark); text-decoration: none;
  transition: color .2s ease, padding .2s ease;
}
.tsd-media-row:last-child { border-bottom: 0; }
.tsd-media-row:hover { color: var(--tsd-green); padding-left: 10px; }
.tsd-media-outlet { font-weight: 800; font-size: 16px; line-height: 1.35; }
.tsd-media-date { font-size: 14px; color: #6B7766; white-space: nowrap; }
.tsd-media-go { color: var(--tsd-red); font-weight: 800; transition: transform .2s ease; }
.tsd-media-row:hover .tsd-media-go { transform: translateX(4px); }
@media (max-width: 480px) {
  .tsd-media-row { grid-template-columns: 1fr 18px; }
  .tsd-media-date { grid-column: 1; grid-row: 2; }
  .tsd-media-go { grid-row: 1 / span 2; grid-column: 2; }
}

/* Banking details */
.tsd-bank { display: flex; flex-direction: column; }
.tsd-bank-row {
  display: flex; justify-content: space-between; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.75); font-size: 16px;
}
.tsd-bank-row:last-child { border-bottom: 0; }
.tsd-bank-row strong { color: #fff; font-size: 18px; letter-spacing: .3px; text-align: right; }
.tsd-bank-row:last-child strong { color: var(--tsd-yellow); font-size: 22px; letter-spacing: 1px; }

/* Map + PDF embeds */
.tsd-map, .tsd-pdf { border-radius: 18px; overflow: hidden; box-shadow: 0 18px 45px -8px rgba(15,26,5,.28); }
.tsd-map iframe { display: block; width: 100%; height: 460px; border: 0; }
.tsd-pdf iframe { display: block; width: 100%; height: 82vh; min-height: 560px; border: 0; background: #fff; }
@media (max-width: 767px) { .tsd-map iframe { height: 320px; } .tsd-pdf iframe { height: 70vh; min-height: 420px; } }

/* Links inside body copy */
.elementor-widget-text-editor a { color: var(--tsd-green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.elementor-widget-text-editor a:hover { color: var(--tsd-red); }

/* Theme demo teal -> brand green */
.common-banner { background-color: var(--tsd-dark); }

/* Theme capitalises everything (body { text-transform: capitalize }) — keep the client's sentence case */
body, .elementor-widget-text-editor, .elementor-widget-text-editor p,
.elementor-widget-heading .elementor-heading-title, .elementor-icon-list-text,
.common-banner__content .sub-title, .footer p, footer p, .topbar { text-transform: none; }
/* Eyebrows stay uppercase (set on the widget) */
/* (eyebrow caps come from each widget's own typography setting) */

/* Theme paints every <p> grey; let the Elementor widget colour through */
.elementor-widget-text-editor p, .elementor-widget-text-editor li { color: inherit; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* Header: keep logo / menu / Donate on one row */
.header nav.navbar { flex-wrap: nowrap; gap: 16px; }
.header .navbar-logo { flex: 0 0 auto; }
.header .navbar__menu-wrapper { flex: 1 1 auto; min-width: 0; justify-content: center; }
.header .navbar__options { flex: 0 0 auto; }
@media (min-width: 1200px) and (max-width: 1499px) {
  .header .navbar__item > a { padding-left: 10px; padding-right: 10px; font-size: 15px; }
}
.elementor-widget-text-editor p { margin: 0 0 1em; }
.topbar a, .topbar span, .topbar p { text-transform: none; }
.elementor-icon-list-text a { display: inline; color: inherit; font-weight: 800; text-decoration: underline; }
.topbar a, .topbar span, footer a, footer span, footer li, .footer a { text-transform: none !important; }
.elementor-widget.tsd-num { flex: 0 0 46px !important; width: 46px !important; max-width: 46px; }
.e-con:has(> .tsd-num) { flex-wrap: nowrap !important; }
.e-con:has(> .tsd-num) > .elementor-widget-text-editor { flex: 1 1 auto; min-width: 0; width: auto; }

/* Main menu in caps (desktop, dropdowns and mobile) */
.header .navbar__item > a, .header .navbar__sub-menu a, .mobile-menu .navbar__item a { text-transform: uppercase !important; letter-spacing: .6px; }
.header .navbar__item > a { white-space: nowrap; font-size: 14px; letter-spacing: .5px; }
@media (min-width: 1200px) and (max-width: 1499px) { .header .navbar__item > a { font-size: 13px; padding-left: 8px; padding-right: 8px; } }
/* Top bar removed — give the header a little air */
@media (min-width: 1200px) { header.header { padding-top: 14px; } }
/* Header Donate Now button in caps to match the menu */
.header .navbar__options .btn--primary, .mobile-menu__cta .btn--primary { text-transform: uppercase !important; letter-spacing: .6px; font-size: 14px; }

/* Homepage About (theme difference-two block) */
.tsd-lead .elementor-heading-title { text-transform: none !important; font-weight: 500; }
.difference-two .difference-two__thumb .thumb-lg img, .difference-two .difference-two__thumb .thumb-sm img { max-width: 100%; height: auto; }
.difference-two .difference-two__thumb .thumb-lg::before { background: linear-gradient(104deg, rgba(15,26,5,0) 40%, rgba(27,48,6,.35) 100%); border-radius: 30px; }
.difference-two .difference-two__tab-btns .active, .difference-two .difference-two__tab-btns .difference-two__tab-btn:hover { background-color: var(--tsd-green); }
/* Hero slider: keep headlines in sentence case */
.banner-two .banner-two__slider-content h1, .banner-two .sub-title { text-transform: none; }
.banner-two .banner-two__slider-content h1 { max-width: 620px; }
/* About paragraph matches the Mission / Vision / What We Do list text */
.tsd-lead .elementor-heading-title { font-family: "Nunito Sans", sans-serif !important; font-size: 16px !important; font-weight: 600 !important; color: #696969 !important; line-height: 30px !important; text-transform: none !important; }
/* Road-safety icon in place of the demo dot grid (floats like the original) */
.tsd-float-icon .elementor-icon { animation: moveTopBottom 4s ease-in-out infinite; opacity: .9; }
.tsd-float-icon { z-index: 3 !important; }
.tsd-float-icon .elementor-icon-wrapper { position: relative; top: -55px; left: -60px; }
@media (max-width: 1024px) { .tsd-float-icon .elementor-icon-wrapper { top: -60px; left: -30px; } }

/* Standard section heading (client-approved look): Caveat subtitle + Nunito 800 title with one word in yellow */
.elementor-heading-title .tsd-hl { color: var(--tsd-yellow); }
.tsd-on-yellow .elementor-heading-title .tsd-hl { color: var(--tsd-green); }
.tsd-subtitle .elementor-icon-list-text { text-transform: none !important; }
.tsd-subtitle .elementor-icon-list-icon i { font-size: 24px; }

/* Buttons behave like the theme's own (charifund btn--primary): two half-width layers slide apart on hover
   to reveal the second colour, and the arrow swings from 45deg to level. */
.tsd-btn .elementor-button { position: relative; overflow: hidden; z-index: 1; transition: color .5s ease, border-color .5s ease !important; }
.tsd-btn .elementor-button::before, .tsd-btn .elementor-button::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 51%; height: 100%;
  background-color: var(--tsd-layer); transition: all .5s ease; z-index: -1; border-radius: 0;
}
.tsd-btn .elementor-button::before { left: 0; }
.tsd-btn .elementor-button::after { right: 0; }
.tsd-btn .elementor-button:hover::before, .tsd-btn .elementor-button:hover::after,
.tsd-btn .elementor-button:focus-visible::before, .tsd-btn .elementor-button:focus-visible::after { width: 0; }
.tsd-btn .elementor-button { background-color: var(--tsd-under) !important; color: var(--tsd-text) !important; }
.tsd-btn .elementor-button:hover, .tsd-btn .elementor-button:focus-visible { color: var(--tsd-text-hover) !important; }
.tsd-btn .elementor-button svg { fill: currentColor; }
.tsd-btn .elementor-button-icon { transform: rotate(-45deg); transition: transform .5s ease; }
.tsd-btn .elementor-button:hover .elementor-button-icon { transform: rotate(0deg); }

.tsd-btn-yellow  { --tsd-layer: #FFC107; --tsd-under: #3D6E10; --tsd-text: #1B3006; --tsd-text-hover: #FFFFFF; }
.tsd-btn-green   { --tsd-layer: #3D6E10; --tsd-under: #FFC107; --tsd-text: #FFFFFF; --tsd-text-hover: #1B3006; }
.tsd-btn-red     { --tsd-layer: #C00000; --tsd-under: #FFC107; --tsd-text: #FFFFFF; --tsd-text-hover: #1B3006; }
.tsd-btn-outline { --tsd-layer: rgba(255,255,255,0); --tsd-under: #FFC107; --tsd-text: #FFFFFF; --tsd-text-hover: #1B3006; }
.tsd-btn-outline .elementor-button:hover { border-color: #FFC107 !important; }
/* On the yellow band, a green button reveals dark green rather than yellow-on-yellow */
.e-con:has(.tsd-on-yellow) .tsd-btn-green { --tsd-under: #1B3006; --tsd-text-hover: #FFFFFF; }
.elementor-icon-list-text a, .elementor-icon-list-text a strong { display: inline !important; }

/* Logo-red accent: subtitle icon is red only on white-background sections (client); elsewhere it matches the text */
.tsd-on-white .elementor-icon-list-icon i, .difference-two .elementor-icon-list-icon i { color: #C00000 !important; }
.tsd-on-white .elementor-icon-list-icon svg, .difference-two .elementor-icon-list-icon svg { fill: #C00000 !important; }
/* Footer credit link */
.footer-bottom a[href*="joren.digital"], footer a[href*="joren.digital"] { color: var(--tsd-yellow); font-weight: 700; text-decoration: none; }
footer a[href*="joren.digital"]:hover { color: #fff; text-decoration: underline; }
/* Theme footer prints two decorative <img> tags even when their images are unset — hide the empty ones */
.footer-two .sprade img:not([src]), .footer-two .sprade img[src=""], .footer-two .sprade-light img:not([src]), .footer-two .sprade-light img[src=""] { display: none; }
/* Play Your Part founder card: round photo like the demo's author avatar */
.tsd-founder .elementor-image-box-img img { border-radius: 50%; aspect-ratio: 1 / 1; object-fit: cover; }
.tsd-founder .elementor-image-box-title { font-family: "Caveat", cursive; font-size: 20px; font-weight: 700; }
/* Header: search icon on the far right, after Donate Now */
.header .navbar__mobile-options { display: flex; align-items: center; }
.header .navbar__mobile-options .btn--primary { order: 1; }
.header .navbar__mobile-options .search-box { order: 2; }
/* Header Donate Now: logo green, hover reveals yellow (theme's split-layer effect kept) */
.header .navbar__options .btn--primary, .mobile-menu__cta .btn--primary { background-color: #FFC107 !important; color: #FFFFFF !important; }
.header .navbar__options .btn--primary::before, .header .navbar__options .btn--primary::after,
.mobile-menu__cta .btn--primary::before, .mobile-menu__cta .btn--primary::after { background-color: #3D6E10 !important; }
.header .navbar__options .btn--primary:hover, .mobile-menu__cta .btn--primary:hover { color: #1B3006 !important; }
.header .navbar__options .btn--primary i, .header .navbar__options .btn--primary svg path { color: inherit; fill: currentColor; }
/* Phones: keep one photo in the two-photo layouts — the overlapping second photo hides the main one */
@media (max-width: 767px) {
  .difference-two .difference-two__thumb .thumb-sm,
  .help .help__thumb .thumb-bottom { display: none !important; }
  .difference-two .difference-two__thumb .thumb-lg { margin-bottom: 0; margin-inline-end: 0; }
  .difference-two .difference-two__thumb { min-width: 0; }
}
/* Play Your Part (theme difference-three): theme hides the photo block below 992px — show the main photo only */
@media (max-width: 991px) {
  .difference-three .difference-three__thumb { display: block !important; }
  .difference-three .difference-three__thumb-inner { min-width: 0; padding-top: 0; }
  .difference-three .difference-three__thumb-inner .thumb-lg { margin-inline-end: 0; }
  .difference-three .difference-three__thumb-inner .thumb-lg img { width: 100%; min-height: 0; max-height: 460px; object-fit: cover; }
  .difference-three .difference-three__thumb-inner .thumb-sm,
  .difference-three .difference-three__thumb-inner .spade,
  .difference-three .difference-three__thumb-inner .line { display: none !important; }
}
/* Floating yellow road mark on inner pages (pulses like the theme's own decorations) */
.tsd-float-mark img { animation: pulse 4s infinite ease-in-out; opacity: .95; }
@media (max-width: 1360px) { .tsd-float-mark { display: none; } }
/* Footer newsletter hidden for now (may come back later) — delete these two lines to restore it */
.footer-two .row:has(.footer-two__newsletter-content),
.footer-two .row:has(> .col-12 > hr.divider) { display: none; }
