/**
 * AlexaHire Responsive Breakpoints Stylesheet
 *
 * Fully tested across 320px, 375px, 390px, 414px, 768px, 1024px, 1280px, 1440px, 1920px.
 *
 * @package AlexaHire
 */

/* ==========================================================================
   TABLET & INTERMEDIATE (Max 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
	.ah-main-grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.ah-footer__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2rem;
	}

	.ah-footer__brand-col {
		grid-column: span 2;
	}

	.ah-hero__grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.ah-hero__showcase {
		flex-direction: column;
		align-items: center;
		gap: 2rem;
	}

	.ah-hero__person-col {
		max-width: 260px;
	}

	.ah-hero__stats-col {
		width: 100%;
		max-width: 500px;
	}

	/* Hero v2 Tablet */
	.ah-hero-v2__main-row {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}

	.ah-hero-v2__right-card {
		grid-column: 1 / -1;
		justify-content: center;
	}

	.ah-hero-stat-box {
		max-width: 500px;
		width: 100%;
	}
}

/* ==========================================================================
/* Global prevention of mobile horizontal wobble/overflow */
html, body {
	overflow-x: hidden !important;
	max-width: 100%;
}

#page {
	overflow-x: hidden !important;
	width: 100%;
}

/* ==========================================================================
   MOBILE LANDSCAPE & PHONES (Max 768px)
   ========================================================================== */
@media (max-width: 768px) {
	.ah-utility-bar {
		display: none;
	}

	.ah-header__inner {
		height: 3.75rem;
		padding: 0 0.5rem;
	}

	/* Hide careers badge on phone so logo does not push header actions */
	.ah-brand-badge {
		display: none !important;
	}

	.ah-nav {
		display: none !important;
	}

	/* On mobile header: hide post-job and login buttons (they are in the mobile drawer) */
	.ah-btn-post-job,
	.ah-btn-login,
	.ah-user-menu-wrap {
		display: none !important;
	}

	.ah-header__actions {
		display: flex !important;
		align-items: center;
		gap: 0.5rem;
		flex-shrink: 0;
	}

	.ah-btn-bell-alert {
		display: inline-flex !important;
		width: 40px;
		height: 40px;
		min-width: 40px;
		align-items: center;
		justify-content: center;
		background: #f8fafc;
		border: 1px solid #e2e8f0;
		border-radius: 10px;
	}

	.ah-hamburger {
		display: inline-flex !important;
		width: 40px;
		height: 40px;
		min-width: 40px;
		align-items: center;
		justify-content: center;
		background: #f8fafc;
		border: 1px solid #e2e8f0;
		border-radius: 10px;
		cursor: pointer;
		color: #1e293b;
	}

	.ah-hero {
		padding-top: 2.5rem;
		padding-bottom: 2.5rem;
	}

	.ah-hero-search {
		flex-direction: column;
		border-radius: var(--ah-radius-lg);
		padding: 0.75rem;
		gap: 0.75rem;
	}

	.ah-hero-search__btn {
		width: 100%;
	}

	.ah-categories-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 0.75rem;
	}

	.ah-resume-banner {
		grid-template-columns: 1fr;
		padding: 1.75rem 1.25rem;
		text-align: center;
	}

	.ah-resume-banner__badges {
		align-items: center;
	}

	.ah-footer__grid {
		grid-template-columns: 1fr;
	}

	.ah-footer__brand-col {
		grid-column: span 1;
	}

	.ah-footer__bottom {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}

	.ah-job-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.25rem;
	}

	.ah-job-card__right {
		width: 100%;
		justify-content: space-between;
		border-top: 1px solid var(--ah-border-light);
		padding-top: 0.875rem;
	}

	.ah-job-card__right .ah-btn {
		flex: 1;
	}

	/* Company Single & Archive Mobile Styles */
	.ah-company-header-card {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 1.5rem 1.25rem;
		gap: 1.25rem;
	}

	.ah-company-header-title-row {
		justify-content: center;
	}

	.ah-company-meta-pills {
		justify-content: center;
	}

	.ah-company-about {
		padding: 1.5rem 1.25rem;
		margin-bottom: 1.75rem;
	}

	.ah-companies-archive-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	/* List & Point Alignment Fix on Mobile */
	.entry-content ul,
	.entry-content ol,
	.ah-single-article ul,
	.ah-single-article ol,
	.ah-job-article ul,
	.ah-job-article ol,
	.ah-job-details-block ul,
	.ah-job-details-block ol {
		padding-left: 1.625rem !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	.ah-job-details-block .entry-content {
		padding: 1.125rem 1rem !important;
	}

	/* Hero v2 Mobile (768px) */
	.ah-hero-v2 {
		padding-top: 2rem;
		padding-bottom: 2.25rem;
	}

	.ah-hero-v2__main-row {
		grid-template-columns: 1fr;
		gap: 2rem;
		text-align: center;
		margin-bottom: 2rem;
	}

	.ah-hero-v2__intro {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.ah-hero-v2__subtext {
		margin-left: auto;
		margin-right: auto;
	}

	.ah-hero-v2__cta-group {
		justify-content: center;
		width: 100%;
	}

	.ah-hero-v2__cta-group .ah-btn {
		flex: 1 1 200px;
		justify-content: center;
	}

	.ah-hero-v2__center-media {
		min-height: 280px;
	}

	.ah-hero-v2__photo {
		max-width: 290px;
		margin: 0 auto;
	}

	.ah-hero-v2__deco-shape.ah-deco--orange {
		width: 160px;
		height: 160px;
		left: calc(50% - 140px);
		bottom: 10px;
	}

	.ah-hero-v2__deco-shape.ah-deco--blue {
		width: 170px;
		height: 170px;
		right: calc(50% - 140px);
		top: 15px;
	}

	.ah-hero-v2__deco-dots {
		left: calc(50% - 130px);
	}

	.ah-hero-v2__right-card {
		justify-content: center;
		width: 100%;
	}

	.ah-hero-stat-box {
		max-width: 100%;
		width: 100%;
	}

	.ah-hero-v2__search-banner {
		padding: 1.25rem 1rem;
		border-radius: 16px;
	}

	.ah-v2-search-pill {
		flex-direction: column;
		align-items: stretch;
		gap: 0.625rem;
		padding: 0.875rem;
		border-radius: 12px;
	}

	.ah-v2-search-divider {
		display: none;
	}

	.ah-v2-search-col {
		width: 100%;
		padding: 0.5rem 0.25rem;
		border-bottom: 1px solid #f1f5f9;
	}

	.ah-v2-search-btn {
		width: 100%;
		justify-content: center;
		padding: 0.875rem;
		margin-top: 0.25rem;
	}

	.ah-v2-popular-line {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.ah-v2-popular-pills {
		gap: 0.375rem;
	}
}

/* ==========================================================================
   SMALL PHONES (Max 480px)
   ========================================================================== */
@media (max-width: 480px) {
	.ah-companies-archive-grid {
		grid-template-columns: 1fr;
	}

	.ah-company-header-card {
		padding: 1.25rem 1rem;
	}

	.ah-company-header-logo {
		width: 60px;
		height: 60px;
	}

	.ah-company-title {
		font-size: 1.35rem;
	}

	.ah-company-meta-pills {
		gap: 0.4rem;
	}

	.ah-company-meta-pill {
		font-size: 0.75rem;
		padding: 0.3rem 0.6rem;
	}

	.ah-single-article {
		padding: 1.25rem 1rem;
	}

	.ah-categories-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ah-header__actions .ah-btn--outline {
		display: none;
	}

	.ah-articles-grid {
		grid-template-columns: 1fr;
	}

	.ah-hero-stat-card {
		padding: 1rem;
	}

	.ah-hero__title {
		font-size: 1.875rem;
	}

	.ah-hero__person-col {
		max-width: 220px;
	}

	.ah-hero__backdrop-shape {
		width: 210px;
		height: 270px;
	}

	.ah-hero__speech-bubble {
		right: -8px;
		top: 5px;
	}

	.ah-hero__person-photo {
		max-width: 210px;
	}

	/* Hero v2 Small Phones (480px) */
	.ah-hero-v2__headline {
		font-size: 1.875rem;
		line-height: 1.2;
	}

	.ah-hero-v2__cta-group {
		flex-direction: column;
		width: 100%;
	}

	.ah-hero-v2__cta-group .ah-btn {
		width: 100%;
	}

	.ah-hero-v2__photo {
		max-width: 240px;
	}

	.ah-hero-stat-box {
		padding: 1.25rem 1rem;
	}

	.ah-stat-number {
		font-size: 1.125rem;
	}

	.ah-btn-upload-cv {
		font-size: 0.875rem;
		padding: 0.75rem 1rem;
	}
}

/* ==========================================================================
   MOBILE SLIDE-OVER DRAWER MENU
   ========================================================================== */
.ah-mobile-drawer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(10, 16, 31, 0.6);
	backdrop-filter: blur(4px);
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.25s ease;
}

.ah-mobile-drawer.active {
	opacity: 1;
	visibility: visible;
}

.ah-mobile-drawer__content {
	position: absolute;
	top: 0;
	right: 0;
	width: 85%;
	max-width: 340px;
	height: 100%;
	background-color: #ffffff;
	padding: 2rem 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transform: translateX(100%);
	transition: transform 0.25s ease;
	overflow-y: auto;
}

.ah-mobile-drawer.active .ah-mobile-drawer__content {
	transform: translateX(0);
}

.ah-mobile-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--ah-border);
	padding-bottom: 1rem;
}

.ah-mobile-drawer__close {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--ah-text);
	padding: 0.25rem;
}

.ah-mobile-drawer__nav {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 1.125rem;
}

.ah-mobile-drawer__link {
	font-family: var(--ah-font-heading);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--ah-text);
	display: block;
}

.ah-mobile-drawer__footer {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.ah-mobile-drawer__item-has-sub {
	position: relative;
}

.ah-mobile-drawer__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	user-select: none;
}

.ah-mobile-arrow {
	font-size: 1.25rem;
	font-weight: 700;
	color: #64748b;
	line-height: 1;
	transition: transform 0.2s ease;
}

.ah-mobile-drawer__sub {
	list-style: none;
	padding: 0.5rem 0 0.5rem 1rem;
	margin: 0.35rem 0 0.25rem 0;
	border-left: 2px solid #e2e8f0;
	display: none;
}

.ah-mobile-drawer__sub-link {
	display: block;
	padding: 0.5rem 0;
	font-size: 0.9375rem;
	color: #475569;
	font-weight: 500;
	text-decoration: none;
}

.ah-mobile-drawer__sub-link:hover {
	color: #2563eb;
}

.ah-mobile-drawer__item-has-sub.ah-sub-open > .ah-mobile-drawer__sub {
	display: block;
}

@media (max-width: 640px) {
	.ah-user-name {
		display: none;
	}

	.ah-author-box {
		flex-direction: column !important;
		align-items: center !important;
		text-align: center !important;
		padding: 1.5rem 1.25rem !important;
	}

	.ah-author-info > div:first-child {
		flex-direction: column !important;
		justify-content: center !important;
		gap: 0.25rem !important;
	}
}

/* Mobile Footer Accordion */
@media (max-width: 768px) {
	.ah-footer__grid {
		grid-template-columns: 1fr !important;
		gap: 0.5rem !important;
	}

	.ah-footer__brand-col {
		margin-bottom: 1rem;
		text-align: left;
	}

	.ah-footer__nav-col {
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.ah-footer__heading {
		display: flex !important;
		justify-content: space-between !important;
		align-items: center !important;
		padding: 0.85rem 0 !important;
		margin-bottom: 0 !important;
		font-size: 1.05rem !important;
		cursor: pointer;
		user-select: none;
	}

	.ah-footer__toggle-icon {
		display: inline-block !important;
		font-size: 1.35rem;
		line-height: 1;
		font-weight: 400;
		color: #94a3b8;
		transition: transform 0.2s ease;
	}

	.ah-footer__nav-col.is-open .ah-footer__toggle-icon {
		transform: rotate(45deg);
		color: #60a5fa;
	}

	.ah-footer__nav-col .ah-footer__menu {
		display: none;
		padding: 0.25rem 0 1rem 0.5rem;
	}

	.ah-footer__nav-col.is-open .ah-footer__menu {
		display: block;
	}
}

@media (min-width: 769px) {
	.ah-footer__toggle-icon {
		display: none !important;
	}

	.ah-footer__menu {
		display: block !important;
	}
}



