/*
Theme Name: Better Together India
Template: hello-elementor
Description: Child theme for bettertogetherindia.org. Layout helpers for the Elementor pages.
Version: 1.0.0
Text Domain: bti-child
*/

/* ---------- base ---------- */
body { font-family: Poppins, sans-serif; font-weight: 300; color: #000; }
a { color: inherit; }
.elementor-widget-text-editor a { text-decoration: none; }
.bti-report a, .bti-legal a { text-decoration: underline; }
.elementor-heading-title strong, .elementor-widget-text-editor strong { font-weight: 600; }

/* ---------- photo + overlapping card (image_card) ---------- */
.bti-ic { position: relative; }
.bti-ic > .bti-ic__img, .bti-ic > .bti-ic__card { flex-shrink: 0; }
.bti-ic > .bti-ic__card { position: relative; z-index: 2; margin-left: -26%; margin-top: 70px; }
.bti-ic--rev > .bti-ic__card { margin-left: 0; }
.bti-ic--rev > .bti-ic__img { margin-left: -26%; margin-top: 0; z-index: 1; }
@media (max-width: 767px) {
	.bti-ic > .bti-ic__card, .bti-ic--rev > .bti-ic__card { margin: -40px 14px 0; width: auto; }
	.bti-ic--rev > .bti-ic__img { margin-left: 0; order: -1; }
}

/* ---------- services footprint cards ---------- */
.bti-fp > .bti-fp__img { flex: 0 0 85.7%; max-width: 85.7%; }
.bti-fp > .bti-fp__img img { width: 100%; object-fit: cover; }
.bti-fp > .bti-fp__box { flex-shrink: 0; position: relative; z-index: 2; margin-left: -44.6%; margin-top: 56px; }
@media (max-width: 767px) {
	.bti-fp > .bti-fp__img { flex-basis: 100%; max-width: 100%; }
	.bti-fp > .bti-fp__box { margin: -50px 0 0 auto; }
}

/* ---------- badge cards ---------- */
.bti-cards .bti-bcard { overflow: visible; }
.bti-badge { margin: -42px auto 26px !important; }
.bti-badge .elementor-icon { width: 84px; height: 84px; padding: 0 !important; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.bti-badge--num .elementor-heading-title { width: 84px; height: 84px; border-radius: 50%; background: #E8E6E6; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
@media (max-width: 767px) { .bti-cards .bti-bcard + .bti-bcard { margin-top: 52px; } }

/* ---------- icon bullet lists ---------- */
.bti-list { list-style: none; margin: 0; padding: 0; }
.bti-list > li { position: relative; padding-left: 60px; margin-bottom: 18px; }
.bti-list > li::before { content: ""; position: absolute; left: 0; top: 4px; width: 32px; height: 32px; background: no-repeat center / contain; }
.bti-list--red > li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='13.5' fill='none' stroke='%23ED1566' stroke-width='3'/%3E%3Cpath d='M13 10.5l8 5.5-8 5.5z' fill='%23ED1566'/%3E%3C/svg%3E"); }
.bti-list--blue > li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='13.5' fill='none' stroke='%23107ACD' stroke-width='3'/%3E%3Cpath d='M13 10.5l8 5.5-8 5.5z' fill='%23107ACD'/%3E%3C/svg%3E"); }
.bti-list--chevron > li { padding-left: 50px; }
.bti-list--chevron > li::before { width: 20px; height: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 30'%3E%3Cpath d='M4 3l12 12L4 27' fill='none' stroke='%23ED1566' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.bti-list ol { margin: 10px 0 0; padding-left: 22px; }
.bti-list ol li { margin-bottom: 8px; }
.bti-list p { margin: 0; }
@media (max-width: 767px) { .bti-list > li { padding-left: 44px; } .bti-list > li::before { width: 26px; height: 26px; } }

/* ---------- about page ---------- */
.bti-vbar { position: relative; padding-left: 18px; }
.bti-vbar .elementor-heading-title { position: relative; }
.bti-vbar .elementor-heading-title::before { content: ""; position: absolute; left: -18px; top: 2px; width: 5px; height: 38px; background: #F1562A; }
.bti-rule { border-top: 3px solid #999997; height: 0; min-height: 0 !important; }
.bti-value::after { content: ""; display: block; width: 196px; max-width: 100%; border-top: 3px solid #000; margin-top: auto; padding-top: 30px; }
.bti-vicon img { width: 80px; height: 80px; margin-bottom: 20px; }

/* ---------- people ---------- */
.bti-person > .elementor-widget-image { flex: 0 0 207px; }
.bti-person__img img { width: 207px; height: 207px; object-fit: cover; }
.bti-tabs { --n-tabs-title-background-color: #fff; --n-tabs-title-background-color-hover: #fff; --n-tabs-title-background-color-active: #000;
	--n-tabs-title-color: #000; --n-tabs-title-color-hover: #000; --n-tabs-title-color-active: #fff; --n-tabs-title-border-radius: 30px;
	--n-tabs-title-flex-grow: 1; --n-tabs-title-flex-basis: 0; --n-tabs-title-font-size: 14px; --n-tabs-heading-justify-content: center;
	--n-tabs-title-gap: 0; --n-tabs-gap: 26px; --n-tabs-border-width: 0; }
.bti-tabs .e-n-tabs-heading { gap: 22px; max-width: 940px; width: 100%; margin: 0 auto; }
.bti-tabs .e-n-tab-title { border: 1px solid #999 !important; padding: 8px 20px !important; font-family: Poppins, sans-serif; font-weight: 500; line-height: 1.4; justify-content: center; }
.bti-tabs .e-n-tab-title[aria-selected="true"] { border-color: #000 !important; }
.bti-tabs .e-n-tab-title:hover { border-color: #000 !important; }
.bti-tabpane { border: 1px solid #eeeeee; border-radius: 20px; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); max-width: 1000px; margin: 0 auto; }
@media (max-width: 767px) { .bti-person > .elementor-widget-image { flex-basis: auto; } }

/* ---------- reports & legal ---------- */
.bti-report h3 { font: 600 20px/1.4 Poppins, sans-serif; margin: 26px 0 6px; }
.bti-report h3:first-child { margin-top: 0; }
.bti-report ul, .bti-report ol { margin: 0 0 10px; padding-left: 22px; }
.bti-report ol ol { list-style: lower-alpha; }
.bti-report p { margin: 0 0 10px; }
.bti-legal h3 { font: 500 22px/1.4 Poppins, sans-serif; margin: 0 0 18px; }
.bti-legal h4 { font: 600 16px/1.4 Poppins, sans-serif; margin: 30px 0 14px; }
.bti-legal ul, .bti-legal ol { padding-left: 22px; margin: 0 0 12px; }
.bti-legal p { margin: 0 0 12px; }
.bti-gallery .gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 0 !important; }

/* ---------- header ---------- */
.bti-header { position: relative; z-index: 50; }
.bti-header .bti-logo img { width: 95px; height: auto; }
.bti-donate .elementor-button { white-space: nowrap; }
@media (max-width: 1024px) { .bti-donate .elementor-button { padding: 9px 16px; font-size: 13px; } }

/* ---------- footer ---------- */
.bti-links { list-style: none; margin: 0; padding: 0; }
.bti-links li { margin-bottom: 14px; text-transform: uppercase; }
.bti-links a:hover, .bti-top:hover { color: #F23551; }
.bti-top { text-decoration: underline !important; }

/* ---------- forms (Fluent Forms): .bti-form .fluentform beats the plugin's own rules ---------- */
.bti-form .fluentform .ff-el-group { margin-bottom: 18px; }
.bti-form .fluentform .ff-el-input--label label { font: 300 12px/1.4 Poppins, sans-serif; color: #000; }
.bti-form .fluentform .ff-el-form-control { font: 300 14px/1.4 Poppins, sans-serif; color: #000; border-radius: 0; box-shadow: none; }
.bti-form .fluentform .ff-el-form-control::placeholder { color: #000; opacity: 1; }
.bti-form .fluentform .ff-btn-submit { font: 400 14px/1.4 Poppins, sans-serif; border-radius: 0; box-shadow: none; }
.bti-form .fluentform .ff-t-container { gap: 0; }
.bti-hidden { display: none !important; }

/* newsletter bar: black field, white button */
.bti-form--newsletter .fluentform { max-width: 980px; margin: 0 auto; }
.bti-form--newsletter .fluentform .ff-t-container { background: #000; margin: 0; }
.bti-form--newsletter .fluentform .ff-t-cell { padding: 0; }
.bti-form--newsletter .fluentform .ff-el-group { margin: 0; }
.bti-form--newsletter .fluentform .ff-el-form-control { background: #000; border: 0; color: #fff; height: 76px; padding: 0 22px; font-weight: 600; font-size: 13px; }
.bti-form--newsletter .fluentform .ff-el-form-control::placeholder { color: #fff; }
.bti-form--newsletter .fluentform .ff-btn-submit { width: 100%; min-width: 0; height: 76px; padding: 0; background: #fff !important; color: #000 !important; border: 1px solid #000 !important; font-weight: 600; font-size: 13px; }
.bti-form--newsletter .fluentform .ff-btn-submit:hover { background: #000 !important; color: #fff !important; border-color: #fff !important; }
.bti-form--newsletter .ff-message-success { background: #fff; padding: 22px; margin: 0; border: 1px solid #000; }
@media (max-width: 767px) {
	.bti-form--newsletter .fluentform .ff-t-container { flex-direction: column; }
	.bti-form--newsletter .fluentform .ff-el-form-control, .bti-form--newsletter .fluentform .ff-btn-submit { height: 56px; }
}

/* underline-only fields (footer contact, take action) */
.bti-form--line .fluentform .ff-el-form-control { background: transparent; border: 0; border-bottom: 1px solid #000; padding: 8px 6px; height: auto; }
.bti-form--line .fluentform .ff-el-form-control:focus { border-bottom-color: #F23551; }
.bti-form--line .fluentform textarea.ff-el-form-control { min-height: 46px; height: 46px; }
.bti-form--line .fluentform .ff_submit_btn_wrapper { text-align: right; }
.bti-form--line .fluentform .ff-btn-submit { background: transparent !important; color: #000 !important; border: 0 !important; padding: 8px 0; }
.bti-form--line .fluentform .ff-btn-submit:hover { color: #F23551 !important; }
.bti-form--footer .fluentform { max-width: 320px; }
.bti-form--impact .fluentform .ff-t-cell { padding-right: 40px; }
.bti-form--impact .fluentform .ff-el-input--label label { font-size: 16px; }
.bti-form--impact .fluentform .ff-el-form-check-label { font-size: 12px; }
.bti-form--impact .fluentform .ff-el-form-check-input { accent-color: #F23551; }
@media (max-width: 767px) { .bti-form--impact .fluentform .ff-t-cell { padding-right: 0; } }

/* boxed fields (contact page) */
.bti-form--box .fluentform .ff-t-cell { padding-right: 14px; }
.bti-form--box .fluentform .ff-el-form-control { background: #fff; border: 1px solid #000; padding: 6px 10px; height: 34px; }
.bti-form--box .fluentform textarea.ff-el-form-control { height: 80px; }
.bti-form--box .fluentform .ff_submit_btn_wrapper { text-align: right; padding-right: 14px; }
.bti-form--box .fluentform .ff-btn-submit { background: #F23551 !important; color: #fff !important; border: 0 !important; width: 250px; max-width: 100%; height: 36px; padding: 0; }
.bti-form--box .fluentform .ff-btn-submit:hover { background: #D92744 !important; }

/* activity report gallery spans the full white card, as on the old site */
@media (min-width: 768px) { .bti-gal-wrap { width: calc(100% + 296px) !important; max-width: none !important; } }
.bti-report li p { margin: 0; }
.bti-report li { margin-bottom: 4px; }

/* phone header: logo | Donate | menu icon on one row */
@media (max-width: 1024px) {
	.bti-header .e-con { flex-wrap: nowrap !important; }
	.bti-header .elementor-widget { width: auto !important; }
	.bti-header .bti-donate { order: 1; }
	.bti-header .bti-nav { order: 2; }
}
/* people tabs stack on phones */
@media (max-width: 767px) {
	.bti-tabs .e-n-tabs-heading { flex-direction: column; gap: 10px; }
	.bti-person__img img { width: 160px; height: 160px; }
}
