/*
Theme Name: Astra Child
Theme URI: https://yourwebsite.com
Description: Child theme for Astra
Author: Your Name
Author URI: https://beta.radius-ois.ai
Template: astra
Version: 1.0.0
*/

/* =========================================== SHARED COMPONENTS - Used by both Blog and Job pages  ============================================= */

/* ---------------------- FILTER BAR (SHARED) ---------------------- */
.custom_filter-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
	padding: 20px 0;
	border-bottom: 1px solid #d9d9d9;
}

.custom_filter-left {
	display: flex;
	align-items: center;
	gap: 24px;
}

.custom_filter-right {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

/* ---------------------- SORT DROPDOWN (SHARED) ---------------------- */
.custom_sort-dropdown {
	position: relative;
}

.custom_sort-btn {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 10px 16px !important;
	background: #fff !important;
	border: 1px solid #d9d9d9 !important;
	border-radius: 20px !important;
	font-size: 14px !important;
	color: #1e1e1e !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
}

.custom_sort-btn:hover {
	border-color: #0077ed;
	background: #f8f9fa;
}

.custom_sort-btn svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

.custom_sort-btn.custom_active svg {
	transform: rotate(180deg);
}

.custom_sort-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	background: #fff;
	border: 1px solid #d9d9d9;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	min-width: 160px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.2s ease;
	z-index: 10;
	padding: 8px;
}

.custom_sort-menu.custom_show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.custom_sort-option {
	display: block !important;
	width: 100% !important;
	padding: 10px 12px !important;
	background: transparent !important;
	border: none !important;
	font-size: 14px !important;
	color: #1e1e1e !important;
	text-align: left !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	border-radius: 8px !important;
}

.custom_sort-option:not(:last-child) {
	margin-bottom: 4px;
}

.custom_sort-option:hover {
	background: #f5f7f5;
}

.custom_sort-option.custom_active {
	background: #f5f7f5 !important;
	color: #0077ed !important;
	font-weight: 500 !important;
}

/* ---------------------- VIEW TOGGLE (SHARED) ---------------------- */
.custom_view-toggle {
	display: flex;
	gap: 8px;
	background: #fff;
	border-radius: 20px;
	border: 1px solid #d9d9d9;
}

.custom_view-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 40px;
	background: transparent;
	border: none;
	border-radius: 20px;
	cursor: pointer;
	padding: 5px;
	transition: all 0.2s ease;
}

.custom_view-btn svg {
	width: 20px;
	height: 20px;
	fill: #d9d9d9;
}

.custom_view-btn:hover {
	background: #f5f7f5;
}

.custom_view-btn.custom_active {
	background: #f5f7f5;
}

.custom_view-btn.custom_active svg {
	fill: #1e1e1e;
}

/* ---------------------- POSTS CONTAINER (SHARED GRID/LIST) ---------------------- */
.custom_posts-container.custom_grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px;
}

.custom_posts-container.custom_list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	width: 100%;
}

.custom_posts-container {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.custom_posts-container.custom_loaded {
	opacity: 1;
}

/* ---------------------- PAGINATION (SHARED) ---------------------- */
.custom_pagination {
	margin-top: 48px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.custom_pagination ul {
	display: flex;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.custom_pagination li a,
.custom_pagination li span {
	padding: 15px !important;
	width: 50px !important;
	height: 50px !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	border-radius: 50% !important;
	border: 1px solid #d9d9d9 !important;
	font-size: 14px !important;
	color: #1e1e1e !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
}

.custom_pagination li a:hover {
	background: #f5f7f5 !important;
	border-color: #0077ed !important;
}

.custom_pagination .current {
	background: #0077ed !important;
	color: #fff !important;
	border-color: #0077ed !important;
}



.custom_dropdown-pill {
	position: relative;
}

/* ---------------------- FILTER DROPDOWNS ---------------------- */
.custom_dropdown-pill .custom_dropdown-btn {
	padding: 10px 20px !important;
	background: #fff !important;
	border: 1px solid #d9d9d9 !important;
	border-radius: 24px !important;
	font-size: 14px !important;
	font-weight: 500;
	color: #1e1e1e !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	white-space: nowrap !important;
}

.custom_dropdown-pill .custom_dropdown-btn:hover {
	border-color: #0077ed;
	background: #f0f7ff;
	color: #1e1e1e;
}

.custom_dropdown-pill .custom_caret {
	margin-left: 6px;
	border: solid #777;
	border-width: 0 2px 2px 0;
	display: inline-block;
	padding: 3px;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.custom_dropdown-pill.custom_active .custom_caret {
	transform: rotate(-135deg);
}

.custom_dropdown-menu {
	display: none;
	position: absolute;
	top: 110%;
	left: 0;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 12px;
	padding: 10px 14px;
	min-width: 200px;
	z-index: 10;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom_dropdown-pill.custom_active .custom_dropdown-menu {
	display: block;
}

.custom_dropdown-menu label {
	display: flex !important;
	gap: 8px !important;
	font-size: 14px !important;
	padding: 6px 0 !important;
	cursor: pointer !important;
}

.custom_dropdown-menu label:hover {
	color: #0077ed;
}

.custom_dropdown-pill .custom_dropdown-btn:focus,
.custom_dropdown-pill .custom_dropdown-btn:focus-visible {
	outline: none;
	border-color: #0077ed;
	background: #f0f7ff;
	color: #1e1e1e;
}

/* ---------------------- BLOG FILTER PILLS ---------------------- */
.custom_filter-pills {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	flex: 1;
}

.custom_filter-pill {
	padding: 10px 20px !important;
	background: #fff !important;
	border: 1px solid #d9d9d9 !important;
	border-radius: 24px !important;
	font-size: 14px !important;
	color: #1e1e1e !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	white-space: nowrap !important;
}

.custom_filter-pill:hover {
	border-color: #0077ed;
	background: #f0f7ff;
}

.custom_filter-pill.custom_active {
	background: #0077ed !important;
	border-color: #0077ed !important;
	color: #fff !important;
}

/* =================================================== BLOG-SPECIFIC STYLES  ======================================================================= */

/* ---------------------- BLOG CARD ---------------------- */
.custom_blog-card {
	background: #fff;
	display: flex;
	flex-direction: column;
	border-bottom: 1px solid #d9d9d9;
	transition: opacity 0.3s ease;
}

.custom_posts-container.custom_list .custom_blog-card {
	flex-direction: row;
	padding-bottom: 32px;
	width: 100%;
}

.custom_blog-card:not(.custom_loading) {
	opacity: 1;
}

/* Blog Image */
.custom_blog-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16/ 9;
	overflow: hidden;
	border-radius: 10px;
}

.custom_blog-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.custom_posts-container.custom_list .custom_blog-thumb {
	width: 360px;
	flex-shrink: 0;
}

/* Blog Content */
.custom_blog-content {
	display: flex;
	flex-direction: column;
}

.custom_posts-container.custom_list .custom_blog-content {
	padding-left: 28px;
	flex: 1;
}

/* Blog Meta */
.custom_blog-meta {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	gap: 10px !important;
	font-size: 14px !important;
	color: #6b6b6b !important;
	text-transform: uppercase !important;
	margin: 16px 0 !important;
}

.custom_line-between {
	width: 100%;
	height: 1px;
	background: #d9d9d9;
}

/* Blog Title */
.custom_post-title {
	font-size: 24px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	margin-bottom: 24px !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

.custom_post-title a {
	color: #1e1e1e !important;
}

/* Blog Info */
.custom_blog-info {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	margin-top: auto !important;
	padding-bottom: 16px !important;
	font-size: 14px !important;
}

.custom_read-link {
	color: #0077ed !important;
	text-decoration: none;
	font-weight: 500;
}

.custom_read-link:hover {
	text-decoration: underline;
}

.custom_date {
	text-wrap: nowrap;
}

.custom_category {
	text-wrap: nowrap;
}



/*=================================================      BLOG END      =========================================== */
/*============================================== CUSTOMER STORIES SPECIFIC ============================*/
.custom_customer_stories_image {
	position: relative;
	width: 100%;
	aspect-ratio: 16/ 9;
	overflow: hidden;
	border-radius: 20px;
	background-color: #f6f9fc;
}

.custom_customer_stories_image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	max-width: 80%;
	max-height: 80%;
	margin: auto;
	display: block;
}

.custom_posts-container.custom_list .custom_customer_stories_image {
	width: 360px;
	flex-shrink: 0;
}



/*=======================================================       CUSTOMER STORIES END     =============================================== */
/* =======================================================      JOB-SPECIFIC STYLES      =============================================== */
/* ---------------------- JOB CARD ---------------------- */
.custom_job-card {
	border: none;
	border-radius: 20px;
	padding: 20px;
	background: #f5f7f5;
	transition:
		background 0.25s ease,
		transform 0.25s ease,
		box-shadow 0.25s ease;
	display: grid;
	grid-template-columns: 1fr;
	row-gap: 14px;
}

/* Hover uplift */
.custom_job-card:hover {
	background: #F6F9FC;
	transform: translateY(-3px) scale(1.01);

	/* Soft floating shadow */
	box-shadow:
		0 8px 20px rgba(10, 37, 64, 0.08),
		/* main shadow */
		inset 0 1px 0 rgba(255, 255, 255, 0.6);
	/* subtle inner highlight */
}


/* force vertical order */
.custom_job-title {
	grid-column: 1;
}

.custom_job-meta-item:nth-of-type(1) {
	grid-column: 1;
}

.custom_job-meta-item:nth-of-type(2) {
	grid-column: 1;
}

.custom_job-footer {
	grid-column: 1;
}
.custom_job-title h3{ 
	line-height: 20px !important;
}

.custom_job-title a {
	font-size: 18px !important;
	line-height: 20px !important;
	font-weight: 600 !important;
	margin-bottom: 0px !important;
	display: flex !important;
	justify-content: start !important;
	align-items: center !important;
	gap: 5px !important;
	min-width: 250px !important;
}

.custom_job-title a {
	text-decoration: none;
	color: #1e1e1e;
}

.custom_job-title a:hover {
	color: #0077ed;
}

.custom_job-meta-item {
	display: flex !important;
	align-items: center !important;
	justify-content: start !important;
	gap: 8px !important;
	color: #555 !important;
	font-size: 14px !important;
	line-height: 16px;
	min-width: 250px !important;
}

.custom_job-meta-item .custom_icon {
	font-size: 16px !important;
	display: flex;
	justify-content: center;
	align-items: center;
}

.custom_job-footer {
	padding-top: 14px;
}

.custom_apply-btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px !important;
	padding: 8px 14px !important;
	border: 1px solid #1e1e1e !important;
	border-radius: 20px !important;
	font-size: 14px !important;
	color: #111 !important;
	text-decoration: none !important;
	transition: all 0.2s ease !important;
}

.custom_apply-btn:hover {
	background: #f5f7f5;
	color: #1e1e1e;
	border-color: #1e1e1e;
}

/* Job Card in List View */
.custom_posts-container.custom_list .custom_job-card {
	grid-template-columns: repeat(4, 1fr);
	column-gap: 24px;
	align-items: center;
}

.custom_posts-container.custom_list .custom_job-title {
	grid-column: 1;
	line-height: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 0px;
	
}

.custom_posts-container.custom_list .custom_job-meta-item:nth-of-type(1) {
	grid-column: 2;
}

.custom_posts-container.custom_list .custom_job-meta-item:nth-of-type(2) {
	grid-column: 3;
}

.custom_posts-container.custom_list .custom_job-footer {
	grid-column: 4;
	justify-self: end;
	padding-top: 0;
}



/*=======================================================      JOB END      =============================================== */

/* ====================================================== 			RESPONSIVE STYLES      ================================================================== */

@media (max-width: 1024px) {
	.custom_posts-container.custom_grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.custom_filter-bar {
		flex-wrap: wrap;
		gap: 16px;
	}

	.custom_filter-pills {
		order: 3;
		width: 100%;
	}

	.custom_posts-container.custom_grid {
		grid-template-columns: 1fr;
	}

	.custom_posts-container.custom_list .custom_blog-card {
		flex-direction: column;
	}

	.custom_posts-container.custom_list .custom_blog-thumb {
		width: 100%;
	}

	.custom_posts-container.custom_list .custom_blog-content {
		padding-left: 0;
	}

	.custom_posts-container.custom_list .custom_job-card {
		flex-direction: column;
	}

	.custom_posts-container.custom_list .custom_job-meta {
		flex-direction: column;
		gap: 8px;
	}

	.custom_post-title {
		font-size: 20px !important;
	}
}