/* Public About, Team and Stories pages use the same quiet palette as the home page. */
:root { --ts-page-orange: #f36015; --ts-page-ink: #252525; --ts-page-muted: #62676c; --ts-page-line: #e7e7e7; }

body:has(.about) .about { padding: 56px 0 24px; background: #fff; }
body:has(.about) .about h2 { margin-bottom: 18px; color: var(--ts-page-ink); font-size: clamp(28px, 3vw, 38px); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
body:has(.about) .about p { max-width: 680px; margin-bottom: 18px; color: var(--ts-page-muted); font-size: 16px; line-height: 1.8; text-align: left; }
body:has(.about) .about ul { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; }
body:has(.about) .about ul li { display: flex; align-items: center; gap: 11px; color: #3b3b3b; font-size: 15px; line-height: 1.5; }
body:has(.about) .about ul li i { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border-radius: 50%; background: #fef2ec; color: var(--ts-page-orange); font-size: 0; }
body:has(.about) .about ul li i::before { content: "✓"; font: 700 14px/1 Arial, sans-serif; }
body:has(.about) .about .about-img { border-radius: 10px; }
body:has(.about) .about + .container.py-5 { padding-top: 48px !important; }
body:has(.about) .about + .container.py-5 > .row > .text-center { max-width: 800px; margin: 0 auto 30px; }
body:has(.about) .about + .container.py-5 > .row > .text-center h2 { color: var(--ts-page-ink); font-size: clamp(26px, 2.5vw, 34px); font-weight: 600; }
body:has(.about) .about + .container.py-5 > .row > .text-center p { color: var(--ts-page-muted); font-size: 15px; line-height: 1.75; }
body:has(.about) .about + .container.py-5 .card { padding: 28px !important; border: 1px solid var(--ts-page-line) !important; border-radius: 10px; background: #fff; box-shadow: none !important; text-align: left !important; }
body:has(.about) .about + .container.py-5 .card i { margin-bottom: 15px; color: var(--ts-page-orange) !important; }
body:has(.about) .about + .container.py-5 .card h4 { color: var(--ts-page-ink); font-size: 21px; font-weight: 600; }
body:has(.about) .about + .container.py-5 .card p { margin: 0; color: var(--ts-page-muted); font-size: 15px; line-height: 1.75; }

body:has(.founder-card) .founder-card { width: min(100%, 300px); border-radius: 10px; box-shadow: none; }
body:has(.founder-card) .founder-card:hover { transform: none; box-shadow: none; }
body:has(.founder-card) .founder-img { height: 370px; transform: none; object-position: center top; }
body:has(.founder-card) .founder-card:hover .founder-img { transform: none; }
body:has(.founder-card) .founder-overlay { inset: auto 0 0; min-height: 88px; padding: 24px 16px 13px; border-radius: 0 0 10px 10px; background: linear-gradient(transparent, rgba(0,0,0,.76)); opacity: 1; align-items: flex-start; text-align: left; }
body:has(.founder-card) .founder-overlay h5 { color: #fff; font-size: 18px; font-weight: 600; }
body:has(.founder-card) .founder-overlay p { color: #fbd0b9 !important; font-size: 12px; letter-spacing: .02em; text-transform: none; }
body:has(.founder-card) .founder-text-section { flex: 1; min-width: 0; color: var(--ts-page-muted); font-size: 16px; line-height: 1.8; }
body:has(.founder-card) .founder-text-section p { margin-bottom: 16px; }
body:has(.founder-card) .founder-text-section h2,
body:has(.founder-card) .founder-text-section h3,
body:has(.founder-card) .founder-text-section h4 { color: var(--ts-page-ink); font-weight: 600; letter-spacing: -.015em; }
body:has(.founder-card) .team-card { overflow: hidden; border: 1px solid var(--ts-page-line); border-radius: 10px; box-shadow: none; transition: border-color .18s ease; }
body:has(.founder-card) .team-card:hover { transform: none; border-color: #fbd0b9; box-shadow: none; filter: none; }
body:has(.founder-card) .team-card img { aspect-ratio: 4 / 5; object-fit: cover; }
body:has(.founder-card) .team-card .overlay { padding: 34px 14px 13px; background: linear-gradient(transparent, rgba(0,0,0,.75)); text-align: left; }
body:has(.founder-card) .team-card .overlay h5 { margin: 0 0 3px; color: #fff; font-size: 15px; font-weight: 600; }
body:has(.founder-card) .team-card .overlay p { color: #fbd0b9; font-size: 11px; font-weight: 500; letter-spacing: .03em; text-transform: none; }
body:has(.founder-card) .container:has(.team-card) > .text-center { max-width: 780px; margin: 34px auto 28px !important; }
body:has(.founder-card) .container:has(.team-card) > .text-center h2 { color: var(--ts-page-ink); font-size: clamp(26px, 2.5vw, 34px); font-weight: 600; }
body:has(.founder-card) .container:has(.team-card) > .text-center p { color: var(--ts-page-muted); font-size: 15px; line-height: 1.75; }
body:has(.donate-section) .donate-section { padding: 38px 24px; border: 1px solid #f2dfd3; border-radius: 10px; background: #fef2ec; }
body:has(.donate-section) .donate-section .dots-left,
body:has(.donate-section) .donate-section .d-right { display: none; }
body:has(.donate-section) .donate-section .donate-heading { margin-bottom: 16px !important; color: var(--ts-page-ink); font-size: clamp(23px, 2.4vw, 30px); font-weight: 600; }
body:has(.donate-section) .donate-section .btn_truesewa,
body:has(.donate-section) .donate-section .btn.btn_truesewa { width: auto !important; min-height: 44px; padding: 11px 22px; border-radius: 7px; background: var(--ts-page-orange); color: #fff; font-weight: 600; }

body:has(.team-card):not(:has(.about)) .banner img { height: clamp(260px, 29vw, 430px) !important; object-fit: cover; object-position: center; }
body:has(.team-card):not(:has(.about)) .banner h2 { color: var(--ts-page-ink); font-size: clamp(28px, 3vw, 38px) !important; font-weight: 600; letter-spacing: -.025em; }
body:has(.team-card):not(:has(.about)) .banner p { color: #444; font-size: 16px !important; line-height: 1.6; }

body:has(.blog-item) .bg_light { padding: 52px 0 24px !important; background: #fff !important; text-align: left !important; }
body:has(.blog-item) .bg_light > .p-3 { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 0 !important; text-align: left; }
body:has(.blog-item) .bg_light h4 { margin: 0 0 9px !important; color: var(--ts-page-ink); font-size: clamp(30px, 4vw, 42px); font-weight: 600; letter-spacing: -.03em; }
body:has(.blog-item) .bg_light .border-bottom { display: none; }
body:has(.blog-item) .bg_light p { max-width: 680px; margin: 0; color: var(--ts-page-muted); font-size: 16px; line-height: 1.65; }
body:has(.blog-item) .container.py-5:has(.blog-item) { padding-top: 20px !important; }
body:has(.blog-item) .blog-item { display: block; padding: 15px; border: 1px solid var(--ts-page-line); border-radius: 11px; background: #fff; color: inherit; text-decoration: none; transition: border-color .18s ease; }
body:has(.blog-item) .blog-item:hover { border-color: #fbd0b9; }
body:has(.blog-item) .blog-item .row { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); gap: 27px; align-items: center; margin: 0; }
body:has(.blog-item) .blog-item .row > [class*="col-"] { width: auto; max-width: none; padding: 0; }
body:has(.blog-item) .blog-item .row > .col-lg-4 { grid-column: 1; grid-row: 1; }
body:has(.blog-item) .blog-item .row > .col-lg-8 { grid-column: 2; grid-row: 1; }
body:has(.blog-item) .blog-item .blog-image { display: block; width: 100%; aspect-ratio: 4 / 3 !important; border-radius: 8px; object-fit: cover; box-shadow: none !important; }
body:has(.blog-item) .blog-item p.text-muted { margin: 0 0 10px !important; color: #777 !important; font-size: 13px; }
body:has(.blog-item) .blog-item .blog-title { margin: 0 0 11px !important; color: var(--ts-page-ink) !important; font-size: clamp(23px, 2.6vw, 32px); font-weight: 600 !important; line-height: 1.25; }
body:has(.blog-item) .blog-item:hover .blog-title { color: #f36015 !important; }
body:has(.blog-item) .blog-item .line-clamp-3 { position: relative; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; color: var(--ts-page-muted) !important; font-size: 15px; line-height: 1.7; }
body:has(.blog-item) .blog-item .line-clamp-3::after { content: "Read story  →"; position: absolute; right: 0; bottom: 0; padding-left: 10px; background: #fff; color: var(--ts-page-orange); font-size: 14px; font-weight: 600; }

body:has(.ckeditor-content) .container.py-5:has(.ckeditor-content) { width: min(100% - 40px, 980px); max-width: 980px; padding-top: 40px !important; }
body:has(.ckeditor-content) .container.py-5:has(.ckeditor-content) > .row > .col-lg-9 { width: 100%; max-width: 100%; padding: 0; }
body:has(.ckeditor-content) .container.py-5:has(.ckeditor-content) .card { border: 0; background: transparent; box-shadow: none; }
body:has(.ckeditor-content) .container.py-5:has(.ckeditor-content) .card-title { margin: 0 0 20px !important; color: var(--ts-page-ink); font-size: clamp(30px, 4vw, 42px); font-weight: 600 !important; letter-spacing: -.03em; line-height: 1.2; }
body:has(.ckeditor-content) .container.py-5:has(.ckeditor-content) .card-img-top { display: block; width: 100%; max-height: 560px; border-radius: 10px !important; object-fit: cover; box-shadow: none !important; }
body:has(.ckeditor-content) .container.py-5:has(.ckeditor-content) .card-body { padding: 17px 0 0; }
body:has(.ckeditor-content) .container.py-5:has(.ckeditor-content) .card-body > .d-flex.justify-content-between { flex-wrap: wrap; gap: 12px; margin-bottom: 24px !important; padding-bottom: 15px; border-bottom: 1px solid var(--ts-page-line); }
body:has(.ckeditor-content) .container.py-5:has(.ckeditor-content) .card-body > .d-flex.justify-content-between > p { color: #777 !important; font-size: 13px; }
body:has(.ckeditor-content) .card-body .d-flex.gap-3 { gap: 8px !important; }
body:has(.ckeditor-content) .card-body .d-flex.gap-3 > a { display: inline-flex !important; width: auto !important; height: 38px !important; min-width: 38px; align-items: center; justify-content: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--ts-page-line); border-radius: 7px !important; background: #fff !important; color: #333 !important; text-decoration: none; }
body:has(.ckeditor-content) .card-body .d-flex.gap-3 > a:hover { border-color: #fbd0b9; background: #fef2ec !important; }
body:has(.ckeditor-content) .card-body .d-flex.gap-3 > a i { color: var(--ts-page-orange); font-family: Arial, sans-serif; font-size: 13px; font-style: normal; font-weight: 700; }
body:has(.ckeditor-content) .card-body .d-flex.gap-3 > a:has(.ri-facebook-fill)::after { content: "Facebook"; }
body:has(.ckeditor-content) .card-body .d-flex.gap-3 > a:has(.ri-whatsapp-fill)::after { content: "WhatsApp"; }
body:has(.ckeditor-content) .card-body .d-flex.gap-3 > a:has(.ri-twitter-fill)::after { content: "X"; }
body:has(.ckeditor-content) .ckeditor-content { max-width: 780px; margin: 0 auto; color: #454545; font-size: 17px; line-height: 1.85; }
body:has(.ckeditor-content) .ckeditor-content h1,
body:has(.ckeditor-content) .ckeditor-content h2,
body:has(.ckeditor-content) .ckeditor-content h3 { margin: 30px 0 12px; color: var(--ts-page-ink); font-weight: 600 !important; line-height: 1.3; }
body:has(.ckeditor-content) .ckeditor-content p,
body:has(.ckeditor-content) .ckeditor-content li { color: #454545; font-size: 16px !important; line-height: 1.85 !important; }
body:has(.ckeditor-content) .ckeditor-content img { margin: 24px auto; border-radius: 8px; }

@media (max-width: 767px) {
  body:has(.about) .about { padding: 36px 0 12px; }
  body:has(.about) .about p { font-size: 15px; line-height: 1.75; }
  body:has(.founder-card) .founder-card { max-width: 340px; }
  body:has(.founder-card) .founder-img { height: 390px; }
  body:has(.founder-card) .founder-text-section { font-size: 15px; }
  body:has(.blog-item) .bg_light { padding: 38px 0 18px !important; }
  body:has(.blog-item) .blog-item .row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  body:has(.blog-item) .blog-item .row > .col-lg-4,
  body:has(.blog-item) .blog-item .row > .col-lg-8 { grid-column: 1; }
  body:has(.blog-item) .blog-item .row > .col-lg-4 { grid-row: 1; }
  body:has(.blog-item) .blog-item .row > .col-lg-8 { grid-row: 2; }
  body:has(.blog-item) .blog-item .blog-image { aspect-ratio: 16 / 10 !important; }
  body:has(.ckeditor-content) .container.py-5:has(.ckeditor-content) { width: min(100% - 30px, 980px); padding-top: 25px !important; }
  body:has(.ckeditor-content) .container.py-5:has(.ckeditor-content) .card-title { font-size: 30px; }
  body:has(.ckeditor-content) .ckeditor-content { font-size: 16px; line-height: 1.75; }
  body:has(.ckeditor-content) .ckeditor-content p,
  body:has(.ckeditor-content) .ckeditor-content li { font-size: 15px !important; line-height: 1.75 !important; }
}

@media (prefers-reduced-motion: reduce) {
  body:has(.about) *, body:has(.team-card) *, body:has(.blog-item) *, body:has(.ckeditor-content) * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
