/* 全站 h1–h3 字型：原本是 Elementor 全域設定（.elementor-kit-5 h1/h2/h3 { font-family: "Helvetica", Sans-serif }），
   停用 Elementor 後由這裡接手；多一層 body 讓權重高過 Astra 的標題字型（Fraunces）。 */
body.grl-kit h1, body.grl-kit h2, body.grl-kit h3 { font-family: "Helvetica", Sans-serif; }

/* Astra 4.14 把 921px 以下文章／頁面外框（#primary）與側邊欄的上下留白從 1.5em 改成 4em，固定回 4.7 版的樣子 */
@media (max-width: 921px) {
	body.ast-separate-container #primary { padding-top: 1.5em; padding-bottom: 1.5em; }
	/* 側邊欄同樣改回：上面不留 4em、下面用 1.5em 內距 */
	body.ast-separate-container #secondary { margin: 0; padding-bottom: 1.5em; }
}

/* 頁尾上方：IG 追蹤卡片＋Podcast 紫色區
   尺寸照舊站 Elementor 範本 423「Above Footer」實測（1440／900／390 寬）。字級大小沿用 Astra 全站的內文字級。 */

.grl-fcta.grl-fcta,
.grl-fcta.grl-fcta > * { margin: 0; }

/* IG 區 */
.grl-fcta-ig {
	padding: 50px;
	background: linear-gradient(180deg, #f0f0f3 0%, #f5ebed 100%);
}
.grl-fcta-ig .grl-fcta-card.grl-fcta-card {
	box-sizing: border-box;
	max-width: 1200px;
	min-height: 450px;
	margin: 0 auto;
	gap: 0;
	align-items: stretch;
	flex-wrap: nowrap;
	background: #fff;
	border: 8px solid #e0e0e0;
}
.grl-fcta .grl-fcta-card > .wp-block-column.grl-fcta-logo {
	flex: 0 0 40%;
	padding-left: 96px;
	text-align: center;
}
.grl-fcta-ig .grl-fcta-logo .wp-block-image { margin: -25px 0 0; }
.grl-fcta-ig .grl-fcta-logo img { width: 250px; max-width: 100%; height: auto; }
.grl-fcta .grl-fcta-card > .wp-block-column.grl-fcta-text {
	flex: 0 0 50%;
	margin: 0 90px 0 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.grl-fcta h2.wp-block-heading {
	margin: 0 0 20px;
	font-family: Helvetica, sans-serif;
	font-size: 32px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -2px;
	text-align: center;
	color: #131516;
}
.grl-fcta-text p {
	margin: 0 0 15px;
	text-align: justify;
	color: #707c84;
}

/* Podcast 紫色區 */
.grl-fcta-podcast {
	padding: 104px 40px;
	background: #8f89c0;
	text-align: center;
}
.grl-fcta-podcast h2.wp-block-heading { color: #fff; }
.grl-fcta-podcast p {
	max-width: 640px;
	margin: 0 auto 15px;
	color: #f6ecea;
}

/* 按鈕：粉紅底、黃框、直角 */
.grl-fcta .wp-block-buttons { justify-content: center; margin-top: 21px; }
.grl-fcta .wp-block-button__link {
	padding: var(--grl-btn-pad, 16px 23px);
	border: 2px solid #f4d204;
	border-radius: 0;
	background: #ea6eac;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 2px;
	text-transform: uppercase;
	transition: background-color .2s, color .2s;
}
.grl-fcta-podcast .wp-block-button__link { border-width: 3px; }
.grl-fcta .wp-block-button__link:hover,
.grl-fcta .wp-block-button__link:focus { background: transparent; color: #fff; }
.grl-fcta-ig .wp-block-button__link:hover,
.grl-fcta-ig .wp-block-button__link:focus { color: #ea6eac; }

/* 平板 */
@media (max-width: 1024px) {
	.grl-fcta { --grl-btn-pad: 15px 22px; }
	.grl-fcta h2.wp-block-heading { font-size: 40px; }
	.grl-fcta-ig h2.wp-block-heading { letter-spacing: -1.4px; }
	.grl-fcta-ig .grl-fcta-card.grl-fcta-card { border-width: 6px; }
	.grl-fcta .grl-fcta-card > .wp-block-column.grl-fcta-logo { flex: 0 1 40%; padding: 0 24px 24px; }
	.grl-fcta-ig .grl-fcta-logo img { width: 100%; }
	.grl-fcta .grl-fcta-card > .wp-block-column.grl-fcta-text { flex: 0 1 60%; padding: 24px 24px 24px 0; }
	.grl-fcta-podcast { padding: 80px 40px; }
	.grl-fcta-podcast p { max-width: none; padding: 0 48px; }
}

/* 手機：卡片改直排 */
@media (max-width: 767px) {
	.grl-fcta { --grl-btn-pad: 14px 21px; }
	.grl-fcta .grl-fcta-card > .wp-block-column.grl-fcta-logo { margin: 0; }
	.grl-fcta-ig .grl-fcta-card.grl-fcta-card { flex-direction: column; }
	.grl-fcta-card.grl-fcta-card { min-height: 0; }
	.grl-fcta .grl-fcta-card > .wp-block-column.grl-fcta-logo,
	.grl-fcta .grl-fcta-card > .wp-block-column.grl-fcta-text { flex: 0 0 auto; }
	.grl-fcta .grl-fcta-card > .wp-block-column.grl-fcta-text { margin: 0; padding: 0 24px 32px; }
	.grl-fcta h2.wp-block-heading { font-size: 28px; letter-spacing: -1px; }
	.grl-fcta-text p { margin-bottom: 12px; font-size: 12px; text-align: center; }
	.grl-fcta-podcast { padding: 64px 24px; }
	.grl-fcta-podcast p { padding: 0; }
	.grl-fcta-ig .wp-block-buttons { margin-top: 4px; }
}

/* ===== contact 頁（原 Elementor 頁 32719）：左粉右紫的主視覺、數據圖示、右側表單卡片 ===== */

.grl-contact.grl-contact {
	margin: 0;
	padding: 300px 60px 0 40px;
	background: linear-gradient(90deg, #ea6eac 50%, #8f89c0 50%);
}
.grl-contact .grl-contact-cols.grl-contact-cols {
	max-width: none;
	gap: 0;
	margin: 0;
	flex-wrap: nowrap;
	align-items: stretch;
}
/* 核心 .wp-block-columns.is-not-stacked-on-mobile>.wp-block-column 會設 flex-basis:0，權重要壓過它 */
.grl-contact .grl-contact-cols.grl-contact-cols > .wp-block-column { flex: 0 0 50%; margin: 0; }

/* 左欄 */
.grl-contact .grl-contact-cols > .grl-contact-intro {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 0 64px 0 0;
	color: #fff;
}
.grl-contact-intro > * { margin: 0 !important; }
.grl-contact .grl-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 24px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #fff;
}
.grl-contact .grl-eyebrow::before { content: ""; width: 59px; border-top: 1px solid #fff; }
.grl-contact h1.wp-block-heading,
.grl-contact h3.wp-block-heading {
	font-family: Helvetica, sans-serif;
	font-weight: 600;
	color: #fff;
}
.grl-contact h1.wp-block-heading { font-size: 40px; line-height: 1.4; letter-spacing: -2.4px; }
.grl-contact h3.wp-block-heading { font-size: 26px; line-height: 1.3; letter-spacing: -1px; }
.grl-contact-intro > p:not(.grl-eyebrow) {
	padding-bottom: calc(1em + 8px);
	text-align: justify;
	color: #fff;
}

/* 三個數據 */
.grl-contact .grl-stats.grl-stats {
	gap: 0;
	min-height: 120px;
	margin-top: 30px !important;
	flex-wrap: nowrap;
}
.grl-contact .grl-stats > .grl-stat {
	flex: 1 1 0;
	margin: 0 !important; /* Astra 手機版會給非最後一欄 margin-bottom:20px，整排被撐高 */
	text-align: center;
	color: #fff;
}
.grl-stat::before {
	content: "";
	display: block;
	width: 40px;
	height: 40px;
	margin: 0 auto 8px;
	background: currentColor;
	/* 用分開的屬性，簡寫的 mask 會把 grl-icons.css 的 mask-image 蓋掉 */
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	transition: transform .3s, color .3s;
}
.grl-stat:hover::before { transform: scale(1.1); color: #4751a7; }
.grl-contact .grl-stat p { margin: 0; }
.grl-contact .grl-stat .grl-stat-num {
	margin-bottom: 4px;
	font-family: Helvetica, sans-serif;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.3;
}
.grl-stat .grl-stat-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
}

/* 立即收聽：整欄寬的透明框按鈕 */
.grl-contact .grl-contact-listen { min-height: 80px; align-items: flex-start; }
.grl-contact .grl-contact-listen .wp-block-button { flex-grow: 1; }
.grl-contact .grl-contact-listen .wp-block-button__link {
	width: 100%;
	padding: var(--grl-btn-pad, 16px 23px);
	border: 2px solid rgba(255, 255, 255, .18);
	border-radius: 0;
	background: transparent;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 2px;
	text-transform: uppercase;
	transition: background-color .2s, border-color .2s;
}
.grl-contact .grl-contact-listen .wp-block-button__link:hover,
.grl-contact .grl-contact-listen .wp-block-button__link:focus { background: #8f89c0; border-color: #f4d204; }

/* 右欄表單卡片 */
.grl-contact .grl-contact-cols > .grl-contact-form {
	padding: 64px;
	background: #fff;
	border: 8px solid #e3e3e3;
}
.grl-contact-form > * { margin: 0 !important; }
.grl-contact .grl-contact-form h3.wp-block-heading { margin-bottom: 20px !important; letter-spacing: normal; color: #131516; }

@media (max-width: 1024px) {
	.grl-contact { --grl-btn-pad: 15px 22px; }
	.grl-contact.grl-contact { padding: 140px 0 0 40px; }
	.grl-contact .grl-contact-cols.grl-contact-cols > .grl-contact-intro { flex: 0 0 47%; gap: 20px; margin-top: 150px; padding: 0; }
	.grl-contact .grl-eyebrow { padding-bottom: 0; }
	.grl-contact h1.wp-block-heading { font-size: 48px; }
	.grl-contact h3.wp-block-heading { font-size: 24px; }
	.grl-contact-intro > p:not(.grl-eyebrow) { padding: 0 16px 1em 0; }
	.grl-contact .grl-stats.grl-stats { width: 300px; min-height: 0; margin-top: 0 !important; }
	.grl-stat::before { width: 24px; height: 24px; }
	.grl-contact .grl-stat .grl-stat-num { font-size: 24px; }
	.grl-contact .grl-contact-listen .wp-block-buttons,
	.grl-contact .grl-contact-listen { width: 300px; }
	.grl-contact .grl-contact-cols.grl-contact-cols > .grl-contact-form { flex: 0 0 50%; border-width: 0; padding: 24px 24px 24px 48px; }
}

@media (max-width: 767px) {
	.grl-contact { --grl-btn-pad: 14px 21px; }
	.grl-contact.grl-contact { padding: 120px 24px 24px; }
	.grl-contact .grl-contact-cols.grl-contact-cols { flex-direction: column; }
	.grl-contact .grl-contact-cols.grl-contact-cols > .grl-contact-intro { flex: 0 0 auto; margin-top: 0; padding: 70px 0 0; }
	.grl-contact h1.wp-block-heading { font-size: 32px; letter-spacing: -1.4px; }
	.grl-contact h3.wp-block-heading { font-size: 20px; }
	.grl-contact .grl-stats.grl-stats { width: auto; }
	.grl-contact .grl-stat .grl-stat-num { font-size: 20px; }
	.grl-stat .grl-stat-label { font-size: 10px; letter-spacing: 1px; }
	.grl-contact .grl-contact-listen { width: auto; }
	.grl-contact .grl-contact-cols.grl-contact-cols > .grl-contact-form { flex: 0 0 auto; padding: 48px 0 0; border: 0; border-top: 2px solid #e3e3e3; }
}
