/* =============================================================================
   COMPONENTS.CSS — FareDrop Theme
   Component-specific styles: deal cards, pricing, sidebar, archive, etc.
   ============================================================================= */

/* =============================================================================
   DEAL CARD
   ============================================================================= */

.deal-card {
	background: var(--white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	position: relative;
	display: flex;
	flex-direction: column;
}

.deal-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.deal-card--expired {
	opacity: 0.65;
}

.deal-card__image-wrap {
	position: relative;
	aspect-ratio: 400 / 280;
	overflow: hidden;
	background: var(--gray-100);
}

.deal-card__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.deal-card:hover .deal-card__image-wrap img {
	transform: scale(1.04);
}

.deal-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
}

.deal-card__expired-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.deal-card__body {
	padding: 1.125rem 1.25rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.deal-card__route {
	font-size: 1rem;
	font-weight: 700;
	color: var(--gray-900);
	line-height: 1.3;
	margin: 0;
}

.deal-card__route-codes {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--gray-500);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.deal-card__route-codes svg {
	flex-shrink: 0;
}

.deal-card__pricing {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.deal-card__price {
	font-size: 1.625rem;
	font-weight: 800;
	color: var(--primary);
	line-height: 1;
}

.deal-card__normal-price {
	font-size: 0.875rem;
	color: var(--gray-400);
	text-decoration: line-through;
}

.deal-card__meta {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	font-size: 0.8rem;
	color: var(--gray-500);
	flex-wrap: wrap;
}

.deal-card__meta-item {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.deal-card__dates {
	font-size: 0.8rem;
	color: var(--gray-500);
}

.deal-card__footer {
	padding: 0.875rem 1.25rem 1.125rem;
	border-top: 1px solid var(--gray-100);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.deal-card__link {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--primary);
	text-decoration: none;
}

.deal-card__link:hover {
	text-decoration: underline;
}

/* =============================================================================
   DEAL CARD FEATURED
   ============================================================================= */

.deal-card-featured {
	background: var(--white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	display: grid;
	grid-template-columns: 340px 1fr;
	transition: box-shadow 0.2s ease;
}

.deal-card-featured:hover {
	box-shadow: var(--shadow-md);
}

.deal-card-featured__image-wrap {
	position: relative;
	overflow: hidden;
	background: var(--gray-100);
}

.deal-card-featured__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.deal-card-featured:hover .deal-card-featured__image-wrap img {
	transform: scale(1.04);
}

.deal-card-featured__badge {
	position: absolute;
	top: 12px;
	left: 12px;
}

.deal-card-featured__body {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.deal-card-featured__route {
	font-size: 1.375rem;
	font-weight: 800;
	color: var(--gray-900);
	margin: 0;
}

.deal-card-featured__codes {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--gray-500);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.deal-card-featured__pricing {
	display: flex;
	align-items: baseline;
	gap: 0.625rem;
}

.deal-card-featured__price {
	font-size: 2.25rem;
	font-weight: 800;
	color: var(--primary);
	line-height: 1;
}

.deal-card-featured__normal {
	font-size: 1rem;
	color: var(--gray-400);
	text-decoration: line-through;
}

.deal-card-featured__excerpt {
	font-size: 0.9375rem;
	color: var(--gray-600);
	line-height: 1.6;
	margin: 0;
}

.deal-card-featured__actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: auto;
}

/* =============================================================================
   SINGLE DEAL
   ============================================================================= */

.single-deal {
	padding: 2.5rem 0 4rem;
}

.single-deal__back {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--gray-600);
	text-decoration: none;
	margin-bottom: 1.5rem;
	transition: color 0.15s;
}

.single-deal__back:hover {
	color: var(--primary);
}

.single-deal__header {
	margin-bottom: 2rem;
}

.single-deal__route-heading {
	font-size: 2.25rem;
	font-weight: 800;
	color: var(--gray-900);
	line-height: 1.2;
	margin: 0 0 0.5rem;
}

.single-deal__codes {
	font-size: 1rem;
	font-weight: 600;
	color: var(--gray-500);
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.single-deal__layout {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 2.5rem;
	align-items: start;
}

.single-deal__summary-card {
	background: var(--white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	padding: 2rem;
	position: sticky;
	top: 90px;
}

.single-deal__summary-price {
	font-size: 2.75rem;
	font-weight: 800;
	color: var(--primary);
	line-height: 1;
	margin-bottom: 0.25rem;
}

.single-deal__summary-was {
	font-size: 0.9rem;
	color: var(--gray-400);
	margin-bottom: 1rem;
}

.single-deal__summary-was span {
	text-decoration: line-through;
}

.single-deal__details-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5rem;
}

.single-deal__details-table tr {
	border-bottom: 1px solid var(--gray-100);
}

.single-deal__details-table tr:last-child {
	border-bottom: none;
}

.single-deal__details-table th {
	text-align: left;
	padding: 0.625rem 0;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--gray-500);
	width: 40%;
}

.single-deal__details-table td {
	padding: 0.625rem 0;
	font-size: 0.9rem;
	color: var(--gray-800);
	font-weight: 500;
}

.single-deal__book-btn {
	width: 100%;
	margin-bottom: 0.75rem;
}

.single-deal__disclaimer {
	font-size: 0.75rem;
	color: var(--gray-400);
	text-align: center;
	line-height: 1.5;
}

/* Booking Steps */
.booking-steps {
	background: var(--gray-50);
	border-radius: var(--radius-md);
	padding: 1.75rem;
	margin: 2rem 0;
}

.booking-steps__title {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--gray-900);
	margin: 0 0 1.25rem;
}

.booking-steps__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.booking-steps__item {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
}

.booking-steps__num {
	width: 28px;
	height: 28px;
	background: var(--primary);
	color: var(--white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	font-weight: 700;
	flex-shrink: 0;
	margin-top: 1px;
}

.booking-steps__text {
	font-size: 0.9rem;
	color: var(--gray-700);
	line-height: 1.5;
}

/* Related Deals */
.related-deals {
	margin-top: 3rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--gray-200);
}

.related-deals__title {
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--gray-900);
	margin: 0 0 1.5rem;
}

.related-deals__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

/* Deal signup CTA (inline in single) */
.deal-signup-cta {
	background: linear-gradient(135deg, var(--primary) 0%, #1a5f87 100%);
	border-radius: var(--radius-lg);
	padding: 2rem;
	text-align: center;
	color: var(--white);
	margin: 2.5rem 0;
}

.deal-signup-cta h3 {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	color: var(--white);
}

.deal-signup-cta p {
	font-size: 0.9rem;
	opacity: 0.85;
	margin: 0 0 1.25rem;
}

/* =============================================================================
   DEAL ARCHIVE FILTERS
   ============================================================================= */

.deal-filters {
	background: var(--white);
	border-radius: var(--radius-md);
	padding: 1rem 1.25rem;
	box-shadow: var(--shadow-sm);
	margin-bottom: 2rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.deal-filters__label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--gray-500);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.deal-filters__select {
	padding: 0.5rem 2rem 0.5rem 0.875rem;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-sm);
	background: var(--gray-50);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--gray-800);
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.5rem center;
	cursor: pointer;
	transition: border-color 0.15s;
}

.deal-filters__select:focus {
	outline: none;
	border-color: var(--primary);
}

.deal-filters__count {
	margin-left: auto;
	font-size: 0.8125rem;
	color: var(--gray-500);
	white-space: nowrap;
}

/* Archive inline upsell */
.deals-upsell-inline {
	grid-column: 1 / -1;
	background: linear-gradient(135deg, #1B4B6B 0%, #1a5f87 100%);
	border-radius: var(--radius-lg);
	padding: 1.75rem 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.deals-upsell-inline__text h3 {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--white);
	margin: 0 0 0.25rem;
}

.deals-upsell-inline__text p {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
}

/* Archive bottom upsell banner */
.deals-upsell-banner {
	background: var(--gray-900);
	border-radius: var(--radius-lg);
	padding: 2.5rem;
	text-align: center;
	margin-top: 2.5rem;
	color: var(--white);
}

.deals-upsell-banner h2 {
	font-size: 1.625rem;
	font-weight: 800;
	color: var(--white);
	margin: 0 0 0.5rem;
}

.deals-upsell-banner p {
	color: rgba(255, 255, 255, 0.75);
	margin: 0 0 1.5rem;
}

/* =============================================================================
   PRICING TABLE
   ============================================================================= */

.pricing-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 2.5rem;
}

.pricing-toggle__label {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--gray-700);
}

.pricing-toggle__label--annual {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.pricing-toggle__save {
	display: inline-block;
	background: var(--green);
	color: var(--white);
	font-size: 0.7rem;
	font-weight: 700;
	padding: 0.15rem 0.5rem;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Toggle switch */
.toggle-switch {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 26px;
}

.toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.toggle-switch__slider {
	position: absolute;
	inset: 0;
	background: var(--gray-300);
	border-radius: 26px;
	cursor: pointer;
	transition: background 0.2s;
}

.toggle-switch__slider::before {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	left: 3px;
	bottom: 3px;
	background: var(--white);
	border-radius: 50%;
	transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-switch__slider {
	background: var(--primary);
}

.toggle-switch input:checked + .toggle-switch__slider::before {
	transform: translateX(22px);
}

/* Pricing grid */
.pricing-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	max-width: 900px;
	margin: 0 auto 3rem;
}

.pricing-card {
	background: var(--white);
	border: 2px solid var(--gray-200);
	border-radius: var(--radius-lg);
	padding: 2rem;
	position: relative;
	display: flex;
	flex-direction: column;
}

.pricing-card--featured {
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(27, 75, 107, 0.1);
}

.pricing-card__badge {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--primary);
	color: var(--white);
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.3rem 1rem;
	border-radius: 20px;
	white-space: nowrap;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.pricing-card__plan {
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--gray-500);
	margin: 0 0 0.5rem;
}

.pricing-card__price-wrap {
	margin-bottom: 1.25rem;
}

.pricing-card__price {
	font-size: 3rem;
	font-weight: 800;
	color: var(--gray-900);
	line-height: 1;
}

.pricing-card__price sup {
	font-size: 1.25rem;
	font-weight: 700;
	vertical-align: super;
}

.pricing-card__period {
	font-size: 0.875rem;
	color: var(--gray-500);
	margin-left: 0.125rem;
}

.pricing-card__annual-note {
	font-size: 0.8rem;
	color: var(--gray-500);
	margin-top: 0.25rem;
}

.pricing-card__desc {
	font-size: 0.9rem;
	color: var(--gray-600);
	line-height: 1.55;
	margin-bottom: 1.5rem;
}

.pricing-card__features {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	flex: 1;
}

.pricing-card__features li {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	font-size: 0.9rem;
	color: var(--gray-700);
	line-height: 1.45;
}

.pricing-card__features li::before {
	content: '';
	width: 18px;
	height: 18px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	flex-shrink: 0;
	margin-top: 1px;
}

.pricing-card__features li.is-unavailable {
	color: var(--gray-400);
}

.pricing-card__features li.is-unavailable::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d1d5db' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

.pricing-card__cta {
	width: 100%;
}

.pricing-card__refund {
	font-size: 0.75rem;
	color: var(--gray-400);
	text-align: center;
	margin-top: 0.625rem;
}

/* Pricing page FAQ */
.pricing-faq {
	max-width: 720px;
	margin: 4rem auto 0;
}

.pricing-faq__title {
	font-size: 1.625rem;
	font-weight: 800;
	color: var(--gray-900);
	text-align: center;
	margin: 0 0 2rem;
}

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.faq-item {
	background: var(--white);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.faq-item[open] {
	border-color: var(--primary);
}

.faq-item__question {
	padding: 1.125rem 1.25rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--gray-800);
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	transition: color 0.15s;
}

.faq-item__question::-webkit-details-marker {
	display: none;
}

.faq-item__question::after {
	content: '';
	width: 20px;
	height: 20px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	flex-shrink: 0;
	transition: transform 0.2s;
}

.faq-item[open] .faq-item__question::after {
	transform: rotate(180deg);
}

.faq-item[open] .faq-item__question {
	color: var(--primary);
}

.faq-item__answer {
	padding: 0 1.25rem 1.125rem;
	border-top: 1px solid var(--gray-100);
}

.faq-item__answer p {
	margin: 0.875rem 0 0;
	font-size: 0.9rem;
	color: var(--gray-600);
	line-height: 1.65;
}

.pricing-page__final-cta {
	background: var(--gray-50);
	border-radius: var(--radius-lg);
	padding: 3rem 2rem;
	text-align: center;
	margin-top: 4rem;
}

.pricing-page__final-cta h2 {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--gray-900);
	margin: 0 0 1.5rem;
}

/* =============================================================================
   SIDEBAR WIDGETS
   ============================================================================= */

.sidebar-widget {
	background: var(--white);
	border-radius: var(--radius-md);
	padding: 1.375rem 1.25rem;
	box-shadow: var(--shadow-sm);
	margin-bottom: 1.5rem;
}

.sidebar-widget:last-child {
	margin-bottom: 0;
}

.sidebar-widget__title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--gray-900);
	margin: 0 0 0.625rem;
}

.sidebar-widget__desc {
	font-size: 0.875rem;
	color: var(--gray-600);
	line-height: 1.55;
	margin: 0 0 1rem;
}

.sidebar-widget__view-all {
	display: inline-block;
	margin-top: 0.875rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--primary);
	text-decoration: none;
}

.sidebar-widget__view-all:hover {
	text-decoration: underline;
}

/* Sidebar premium widget */
.sidebar-widget--premium {
	background: linear-gradient(135deg, #1B4B6B 0%, #1a5f87 100%);
}

.sidebar-widget--premium .sidebar-widget__title {
	color: var(--white);
}

.sidebar-widget--premium .sidebar-widget__desc {
	color: rgba(255, 255, 255, 0.85);
}

/* Sidebar deals list */
.sidebar-deals {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.sidebar-deals__item {
	border-bottom: 1px solid var(--gray-100);
}

.sidebar-deals__item:last-child {
	border-bottom: none;
}

.sidebar-deals__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.625rem 0;
	text-decoration: none;
	transition: opacity 0.15s;
}

.sidebar-deals__link:hover {
	opacity: 0.75;
}

.sidebar-deals__route {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--gray-800);
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sidebar-deals__meta {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	flex-shrink: 0;
}

.sidebar-deals__meta strong {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--primary);
}

/* WP widget defaults */
.widget-deals {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget-deals__item {
	border-bottom: 1px solid var(--gray-100);
}

.widget-deals__item a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.625rem 0;
	font-size: 0.875rem;
	color: var(--gray-800);
	text-decoration: none;
}

.widget-deals__item a:hover {
	color: var(--primary);
}

.widget-view-all {
	display: inline-block;
	margin-top: 0.75rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--primary);
	text-decoration: none;
}

/* =============================================================================
   BLOG / POST CARDS
   ============================================================================= */

.post-card {
	background: var(--white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.post-card__image-wrap {
	aspect-ratio: 600 / 400;
	overflow: hidden;
	background: var(--gray-100);
	position: relative;
}

.post-card__image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.post-card:hover .post-card__image-wrap img {
	transform: scale(1.04);
}

.post-card__category {
	position: absolute;
	top: 10px;
	left: 10px;
}

.post-card__body {
	padding: 1.25rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.post-card__title {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--gray-900);
	line-height: 1.35;
	margin: 0;
}

.post-card__title a {
	color: inherit;
	text-decoration: none;
}

.post-card__title a:hover {
	color: var(--primary);
}

.post-card__excerpt {
	font-size: 0.875rem;
	color: var(--gray-600);
	line-height: 1.6;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card__footer {
	padding: 0.875rem 1.25rem 1.125rem;
	border-top: 1px solid var(--gray-100);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.post-card__date {
	font-size: 0.8rem;
	color: var(--gray-500);
}

/* =============================================================================
   SINGLE POST
   ============================================================================= */

.single-post {
	padding: 2.5rem 0 4rem;
}

.single-post__header {
	margin-bottom: 2rem;
}

.single-post__categories {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.875rem;
	flex-wrap: wrap;
}

.single-post__title {
	font-size: 2.375rem;
	font-weight: 800;
	color: var(--gray-900);
	line-height: 1.2;
	margin: 0 0 1rem;
}

.single-post__meta {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	font-size: 0.875rem;
	color: var(--gray-500);
	flex-wrap: wrap;
}

.single-post__meta-item {
	display: flex;
	align-items: center;
	gap: 0.375rem;
}

.single-post__featured-image {
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-bottom: 2rem;
	aspect-ratio: 16 / 7;
}

.single-post__featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-post__layout {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 2.5rem;
	align-items: start;
}

/* TOC */
.single-post__toc {
	background: var(--gray-50);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-md);
	padding: 1.25rem;
	margin-bottom: 2rem;
}

.single-post__toc h4 {
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--gray-500);
	margin: 0 0 0.75rem;
}

.single-post__toc ol {
	margin: 0;
	padding-left: 1.25rem;
}

.single-post__toc li {
	margin-bottom: 0.375rem;
}

.single-post__toc a {
	font-size: 0.875rem;
	color: var(--primary);
	text-decoration: none;
}

.single-post__toc a:hover {
	text-decoration: underline;
}

/* Article content typography */
.entry-content {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--gray-700);
}

.entry-content h2 {
	font-size: 1.625rem;
	font-weight: 800;
	color: var(--gray-900);
	margin: 2.5rem 0 1rem;
}

.entry-content h3 {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--gray-900);
	margin: 2rem 0 0.75rem;
}

.entry-content p {
	margin: 0 0 1.25rem;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.25rem;
	padding-left: 1.5rem;
}

.entry-content li {
	margin-bottom: 0.5rem;
}

.entry-content a {
	color: var(--primary);
	text-decoration: underline;
}

.entry-content blockquote {
	border-left: 4px solid var(--primary);
	margin: 1.5rem 0;
	padding: 0.75rem 1.25rem;
	background: var(--gray-50);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.entry-content blockquote p {
	margin: 0;
	font-style: italic;
	color: var(--gray-600);
}

.entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-md);
}

/* Inline post CTA */
.inline-post-cta {
	background: var(--gray-50);
	border-radius: var(--radius-md);
	padding: 1.5rem;
	margin: 2rem 0;
	border: 1px solid var(--gray-200);
	text-align: center;
}

.inline-post-cta.is-premium {
	background: linear-gradient(135deg, #1B4B6B 0%, #1a5f87 100%);
	border-color: transparent;
	color: var(--white);
}

.inline-post-cta h4 {
	font-size: 1.0625rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
}

.inline-post-cta.is-premium h4 {
	color: var(--white);
}

.inline-post-cta p {
	font-size: 0.875rem;
	color: var(--gray-600);
	margin: 0 0 1rem;
}

.inline-post-cta.is-premium p {
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 1rem;
}

/* Social share */
.social-share {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin: 2.5rem 0;
	padding: 1.25rem 0;
	border-top: 1px solid var(--gray-200);
	border-bottom: 1px solid var(--gray-200);
}

.social-share__label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--gray-700);
	margin-right: 0.25rem;
}

.social-share__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.5rem 0.875rem;
	border-radius: var(--radius-sm);
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.15s;
}

.social-share__btn:hover {
	opacity: 0.85;
}

.social-share__btn--twitter {
	background: #000;
	color: var(--white);
}

.social-share__btn--facebook {
	background: #1877f2;
	color: var(--white);
}

.social-share__btn--copy {
	background: var(--gray-200);
	color: var(--gray-800);
	cursor: pointer;
	border: none;
}

/* Related posts */
.related-posts {
	margin-top: 3rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--gray-200);
}

.related-posts__title {
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--gray-900);
	margin: 0 0 1.5rem;
}

.related-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.25rem;
}

/* =============================================================================
   ARCHIVE / BLOG LISTING
   ============================================================================= */

.archive-header {
	padding: 3rem 0 2rem;
}

.archive-header__title {
	font-size: 2rem;
	font-weight: 800;
	color: var(--gray-900);
	margin: 0 0 0.375rem;
}

.archive-header__desc {
	font-size: 1rem;
	color: var(--gray-600);
	margin: 0;
}

.cat-tabs {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}

.cat-tab {
	display: inline-block;
	padding: 0.4375rem 0.875rem;
	border-radius: 20px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--gray-700);
	background: var(--gray-100);
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.cat-tab:hover,
.cat-tab.is-active {
	background: var(--primary);
	color: var(--white);
}

/* Archive layout */
.archive-layout {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 2.5rem;
	align-items: start;
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

/* =============================================================================
   FORMS
   ============================================================================= */

/* Signup form (overrides global) — context variants */
.signup-form--hero {
	background: rgba(255, 255, 255, 0.12);
	border-radius: var(--radius-md);
	padding: 1.25rem;
}

.signup-form--widget,
.signup-form--sidebar {
	/* inherits base signup-form styles */
}

/* Form states */
.signup-form.is-loading .signup-form__btn {
	opacity: 0.7;
	pointer-events: none;
}

.signup-form__success {
	display: none;
	padding: 1rem;
	background: rgba(34, 197, 94, 0.15);
	border-radius: var(--radius-sm);
	color: #15803d;
	font-size: 0.9rem;
	font-weight: 600;
	text-align: center;
}

.signup-form__error {
	display: none;
	padding: 0.75rem 1rem;
	background: rgba(239, 68, 68, 0.1);
	border-radius: var(--radius-sm);
	color: #dc2626;
	font-size: 0.8125rem;
	margin-top: 0.5rem;
}

/* =============================================================================
   ABOUT PAGE
   ============================================================================= */

.about-page {
	padding: 4rem 0;
}

.about-hero {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 4rem;
}

.about-hero__title {
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--gray-900);
	margin: 0 0 1rem;
}

.about-hero__lead {
	font-size: 1.125rem;
	color: var(--gray-600);
	line-height: 1.65;
}

.about-story {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
	margin-bottom: 5rem;
}

.about-story__content h2 {
	font-size: 1.75rem;
	font-weight: 800;
	color: var(--gray-900);
	margin: 0 0 1rem;
}

.about-story__content p {
	font-size: 1rem;
	color: var(--gray-600);
	line-height: 1.7;
	margin: 0 0 1rem;
}

.about-story__image {
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--gray-100);
	aspect-ratio: 4 / 3;
}

.about-story__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-values {
	margin-bottom: 5rem;
}

.about-values__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-top: 2rem;
}

.about-value-card {
	background: var(--white);
	border-radius: var(--radius-md);
	padding: 1.75rem;
	box-shadow: var(--shadow-sm);
}

.about-value-card__icon {
	font-size: 2rem;
	margin-bottom: 0.875rem;
}

.about-value-card__title {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--gray-900);
	margin: 0 0 0.5rem;
}

.about-value-card__text {
	font-size: 0.9rem;
	color: var(--gray-600);
	line-height: 1.6;
	margin: 0;
}

/* =============================================================================
   FAQ PAGE
   ============================================================================= */

.faq-page {
	padding: 4rem 0;
}

.faq-page__header {
	text-align: center;
	max-width: 600px;
	margin: 0 auto 3rem;
}

.faq-page__title {
	font-size: 2.25rem;
	font-weight: 800;
	color: var(--gray-900);
	margin: 0 0 0.75rem;
}

.faq-page__sub {
	font-size: 1.0625rem;
	color: var(--gray-600);
}

.faq-section {
	max-width: 760px;
	margin: 0 auto 3rem;
}

.faq-section__title {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--primary);
	margin: 0 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--primary);
}

/* =============================================================================
   GENERIC PAGE
   ============================================================================= */

.page-content {
	padding: 3rem 0 5rem;
}

.page-content__inner {
	max-width: 760px;
	margin: 0 auto;
}

.page-content__inner h1 {
	font-size: 2rem;
	font-weight: 800;
	color: var(--gray-900);
	margin: 0 0 1.5rem;
}

.page-content__inner h2 {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--gray-900);
	margin: 2.5rem 0 0.875rem;
}

.page-content__inner p,
.page-content__inner li {
	font-size: 1rem;
	color: var(--gray-600);
	line-height: 1.75;
}

/* =============================================================================
   404 PAGE
   ============================================================================= */

.error-404 {
	padding: 6rem 0;
	text-align: center;
}

.error-404__code {
	font-size: 8rem;
	font-weight: 900;
	color: var(--gray-100);
	line-height: 1;
	margin: 0 0 0.5rem;
}

.error-404__title {
	font-size: 2rem;
	font-weight: 800;
	color: var(--gray-900);
	margin: 0 0 0.75rem;
}

.error-404__text {
	font-size: 1.0625rem;
	color: var(--gray-600);
	margin: 0 0 2rem;
}

.error-404__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

/* =============================================================================
   COMMENTS
   ============================================================================= */

.comments-area {
	margin-top: 3rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--gray-200);
}

.comments-area .comments-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--gray-900);
	margin: 0 0 1.5rem;
}

.comment-list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.comment {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--gray-100);
}

.comment-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.625rem;
}

.comment-author .fn {
	font-weight: 600;
	color: var(--gray-900);
	font-style: normal;
}

.comment-metadata {
	font-size: 0.8rem;
	color: var(--gray-500);
}

.comment-content p {
	font-size: 0.9375rem;
	color: var(--gray-700);
	line-height: 1.65;
	margin: 0;
}

/* Comment form */
.comment-respond {
	margin-top: 2rem;
}

.comment-respond .comment-reply-title {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--gray-900);
	margin: 0 0 1.25rem;
}

.comment-form label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--gray-700);
	margin-bottom: 0.375rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-sm);
	font-size: 0.9rem;
	color: var(--gray-900);
	background: var(--white);
	transition: border-color 0.15s;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--primary);
}

.comment-form textarea {
	height: 140px;
	resize: vertical;
}

.comment-form .form-submit {
	margin-top: 1rem;
}

.comment-form .submit {
	display: inline-flex;
	align-items: center;
	padding: 0.6875rem 1.5rem;
	background: var(--primary);
	color: var(--white);
	border: none;
	border-radius: var(--radius-sm);
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s;
}

.comment-form .submit:hover {
	background: var(--primary-dark);
}
