/**
 * Corrections layered over the exported Digilab/Elementor stylesheets.
 *
 * Each rule here fixes something that was broken in the export rather than
 * restyling the design. Loaded last so it wins over the exported CSS.
 *
 * @package orchidassociate
 */

/* The footer contact-block patches that used to live here went with the
   footer they patched. The rebuilt footer is styled in css/orchid-chrome.css. */

/* ---------------------------------------------------------------------------
 * Success stories and news cards. The export left both sections empty, so
 * there was no card styling to inherit — this matches the destination cards.
 * ------------------------------------------------------------------------- */
.orchid-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
}

.orchid-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.orchid-card:hover,
.orchid-card:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.orchid-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #f2f2f2;
}

.orchid-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.orchid-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 24px 26px;
}

.orchid-card__meta {
	margin-bottom: 8px;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.7;
}

.orchid-card__title {
	margin: 0 0 10px;
	font-size: 19px;
	line-height: 1.4;
}

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

.orchid-card__title a:hover,
.orchid-card__title a:focus {
	text-decoration: underline;
}

.orchid-card__excerpt {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.7;
}

.orchid-card__link {
	margin-top: auto;
	font-weight: 600;
	text-decoration: none;
}

.orchid-card__link:hover,
.orchid-card__link:focus {
	text-decoration: underline;
}

/* ---------------------------------------------------------------------------
 * An empty section left a visible gap on the exported page. Sections with no
 * content now collapse instead of reserving space.
 * ------------------------------------------------------------------------- */
.orchid-section--empty {
	display: none;
}

/* Keyboard access on the archive and search cards. The navbar rules that used
   to sit here went with the bootsnav navbar. */
.orchid-card__link:focus-visible,
.orchid-card__title a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Screen-reader-only text, used for the search field and carousel labels. */
.orchid-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------------------
 * Partner logos: the carousel slides were fixed-size images. Constrain them so
 * a logo uploaded at any size still sits on the same baseline.
 * ------------------------------------------------------------------------- */
.orchid-partner-logo img {
	max-height: 100px;
	object-fit: contain;
}

/* ---------------------------------------------------------------------------
 * Flexible page sections (about, services, visa pages).
 * ------------------------------------------------------------------------- */
.orchid-section {
	padding: 60px 0;
}

.orchid-section--centered .elementor-widget-wrap {
	text-align: center;
}

.orchid-eyebrow {
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0.75;
}

.orchid-section .elementor-widget-image img {
	width: 100%;
	height: auto;
	border-radius: 6px;
}

/* ---------------------------------------------------------------------------
 * Gallery.
 * ------------------------------------------------------------------------- */
.orchid-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.orchid-gallery__item {
	margin: 0;
	overflow: hidden;
	border-radius: 6px;
}

.orchid-gallery__link {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #f2f2f2;
}

.orchid-gallery__link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.orchid-gallery__link:hover img,
.orchid-gallery__link:focus-visible img {
	transform: scale(1.05);
}

.orchid-gallery figcaption {
	padding: 8px 4px 0;
	font-size: 14px;
	opacity: 0.8;
}

/* ---------------------------------------------------------------------------
 * Contact page office cards.
 * ------------------------------------------------------------------------- */
.orchid-office-card {
	text-align: center;
}

.orchid-office-card .elementor-icon {
	margin-bottom: 12px;
	font-size: 32px;
}

/* ---------------------------------------------------------------------------
 * Archive listing titles, so post cards inherit sensible sizing outside the
 * exported Elementor rules.
 * ------------------------------------------------------------------------- */
.orchid-post-title {
	margin: 6px 0 10px;
	font-size: 24px;
	line-height: 1.35;
}

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

.orchid-post-title a:hover,
.orchid-post-title a:focus {
	text-decoration: underline;
}

.orchid-empty {
	padding: 24px;
	text-align: center;
	background: #f6f7f7;
	border-radius: 6px;
}

.orchid-404-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	justify-content: center;
	padding: 0;
	margin: 24px 0 0;
	list-style: none;
}

/* The home page sections used to be styled here. They now have their own
   stylesheet, css/orchid-home.css, which is loaded only on that template. */

@media (prefers-reduced-motion: reduce) {
	.orchid-card,
	.orchid-gallery__link img {
		transition: none;
	}
}
