/* ==========================================================================
   The Capital — FAQ Accordion
   Styles Elementor's Accordion widget for a dark theme with gold active states.
   ========================================================================== */

/* ------------------------------------------------------------------
   1. Section
   ------------------------------------------------------------------ */
.tc-faq {
	text-align: center;
	padding-bottom: 150px !important;

	@media (max-width: 767px) {
		padding-left: 15px !important;
		padding-right: 15px !important;
		padding-bottom: 70px !important;
		padding-top: 10px !important;
	}
}

/* ------------------------------------------------------------------
   2. Header
   ------------------------------------------------------------------ */
.tc-faq-subheading {
	margin-bottom: 35px !important;
}

.tc-faq-subheading .elementor-heading-title {
	font-family: 'DM Sans', var(--tc-font-body), sans-serif !important;
	font-size: 18px !important;
	font-weight: 500 !important;
	letter-spacing: 3.78px !important;
}

.tc-faq-title,
.tc-faq-heading {
	margin-bottom: 0;
}

.tc-faq-title .elementor-heading-title,
.tc-faq-heading .elementor-heading-title {
	font-size: 56px !important;
}

.tc-faq .elementor-widget-n-tabs .e-n-tabs .e-n-tabs-heading {
	margin-bottom: 50px;
	display: flex;
}

.tc-faq .e-n-tabs-heading .e-n-tab-title {
	font-family: 'DM Sans', var(--tc-font-body), sans-serif !important;
	font-size: 21px !important;
	line-height: 33px !important;
	background-color: transparent !important;
	padding: 0 !important;
	color: var(--tc-white) !important;
	margin: 0 19px !important;
	border-bottom: 1px solid transparent;
}

.tc-faq .e-n-tabs-heading .e-n-tab-title[aria-selected=true] {
	border-bottom: 1px solid var(--tc-gold);
}

/* ------------------------------------------------------------------
   3. Accordion Widget Overrides
   ------------------------------------------------------------------ */
.page-template-default:not(.home) .tc-faq-wrap .elementor-container {
	max-width: 1044px !important;
}

.tc-faq-wrap .elementor-accordion {
	border: none;
}

/* Individual FAQ item */
.tc-faq-wrap .elementor-widget-n-accordion .e-n-accordion-item-title {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	border-bottom: none;
	border-left: none;
	border-right: none;
	padding: 15px 10px;
}

.tc-faq-wrap .elementor-widget-n-accordion .e-n-accordion-item-title:first-child {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.tc-faq-wrap .elementor-widget-n-accordion .e-n-accordion-item:last-child .e-n-accordion-item-title {
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tc-faq-wrap .elementor-widget-n-accordion .e-con-full {
	padding: 0;
	border: none;
}

/* ------------------------------------------------------------------
   4. Question / Title
   ------------------------------------------------------------------ */
.tc-faq-wrap .elementor-tab-title {
	padding: 22px 0 !important;
	background: transparent !important;
	border: none !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tc-faq-wrap .elementor-tab-title a,
.tc-faq-wrap .elementor-tab-title .elementor-accordion-title,
.tc-faq-wrap .e-n-accordion-item .e-n-accordion-item-title .e-n-accordion-item-title-text {
	font-family: var(--tc-font-body) !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	text-decoration: none !important;
	transition: color 0.3s ease;
	text-align: left;
	line-height: 1.5;
}

/* Active / open state — gold text */
.tc-faq-wrap .elementor-tab-title.elementor-active a,
.tc-faq-wrap .elementor-tab-title.elementor-active .elementor-accordion-title {
	color: var(--tc-gold) !important;
}

/* Smooth content reveal */
.tc-faq-wrap .elementor-tab-content {
	overflow: hidden;
}

/* ------------------------------------------------------------------
   5. Plus / Minus Icon
   ------------------------------------------------------------------ */
/* Force icon to the right of the title text */
.tc-faq-wrap .elementor-tab-title {
	flex-direction: row !important;
}

.tc-faq-wrap .elementor-tab-title .elementor-accordion-icon {
	order: 2 !important;
	margin-left: auto !important;
	margin-right: 0 !important;
	padding-left: 20px;
	flex-shrink: 0;
}

.tc-faq-wrap .elementor-tab-title .elementor-accordion-title {
	order: 1 !important;
}

.tc-faq-wrap .elementor-tab-title .elementor-accordion-icon svg {
	width: 14px;
	height: 14px;
	fill: rgba(255, 255, 255, 0.5);
	transition: fill 0.3s ease;
}

.tc-faq-wrap .elementor-tab-title .elementor-accordion-icon i {
	color: rgba(255, 255, 255, 0.5);
	font-size: 14px;
	transition: color 0.3s ease;
}

/* Active icon colour */
.tc-faq-wrap .elementor-tab-title.elementor-active .elementor-accordion-icon svg {
	fill: var(--tc-gold);
}

.tc-faq-wrap .elementor-tab-title.elementor-active .elementor-accordion-icon i {
	color: var(--tc-gold);
}

/* Icon open/closed states */
.tc-faq-wrap .elementor-tab-title .elementor-accordion-icon-closed,
.tc-faq-wrap .elementor-tab-title .elementor-accordion-icon-opened {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ------------------------------------------------------------------
   6. Answer / Content
   ------------------------------------------------------------------ */
.tc-faq-wrap .elementor-tab-content {
	padding: 0 0 32px 0 !important;
	background: transparent !important;
	border: none !important;
	text-align: left;
}

.tc-faq-wrap .elementor-tab-content p {
	font-family: var(--tc-font-body);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
}

/* ------------------------------------------------------------------
   7. Responsive
   ------------------------------------------------------------------ */
@media (max-width: 767px) {
	.tc-faq-subheading {
		text-align: center;
		margin-bottom: 25px !important;
	}

	.tc-faq-subheading .elementor-heading-title {
		font-size: 13px !important;
		text-align: center;
	}

	.tc-faq-title .elementor-heading-title,
	.tc-faq-heading .elementor-heading-title {
		font-size: 40px !important;
		text-align: center;
	}

	.tc-faq-wrap .elementor-tab-title a,
	.tc-faq-wrap .elementor-tab-title .elementor-accordion-title,
	.tc-faq-wrap .e-n-accordion-item .e-n-accordion-item-title {
		font-size: 18px !important;
	}

	.tc-faq-wrap .elementor-tab-content p {
		font-size: 13px;
	}

	.tc-faq-wrap .elementor-element-populated {
		padding: 0 !important;
	}
}
