@media (max-width: 1120px) {
	.sxm-primary-nav,
	.sxm-header-cta {
		display: none;
	}
	.sxm-brand {
		flex: 1 1 auto;
		min-width: 0;
		gap: 10px;
	}
	.sxm-brand-text {
		min-width: 0;
		overflow: hidden;
	}
	.sxm-brand-name,
	.sxm-brand-tagline {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.sxm-mobile-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		border-radius: 10px;
		background: rgba(11, 29, 58, 0.06);
	}
	body.sxm-transparent-header .sxm-site-header:not(.is-sticky) .sxm-mobile-toggle {
		background: rgba(255, 255, 255, 0.16);
	}
	.sxm-mobile-toggle span {
		width: 20px;
	}
	.sxm-facilities-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.sxm-news-layout {
		grid-template-columns: 1fr;
	}
	.sxm-layout-both-sidebars {
		grid-template-columns: 240px minmax(0, 1fr);
	}
	.sxm-sidebar-both-right {
		grid-column: 1 / -1;
	}
	.sxm-footer-cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	body {
		padding-bottom: calc(68px + env(safe-area-inset-bottom));
	}
	.sxm-welcome-grid,
	.sxm-principal-card,
	.sxm-principal-card-alt,
	.sxm-contact-grid,
	.sxm-layout-left-sidebar,
	.sxm-layout-right-sidebar,
	.sxm-layout-both-sidebars {
		grid-template-columns: 1fr;
	}
	.sxm-principal-card-alt .sxm-principal-media {
		order: 0;
	}
	.sxm-welcome-badge-card {
		position: static;
		margin-top: 14px;
	}
	.sxm-principal-body {
		padding: 24px 20px;
	}
	.sxm-topbar-inner {
		padding-block: 5px;
		gap: 8px;
		font-size: 0.74rem;
	}
	.sxm-top-location,
	.sxm-top-socials,
	.sxm-top-links {
		display: none;
	}
	.sxm-topbar-ticker {
		max-width: 55vw;
	}
	.sxm-back-to-top {
		right: 16px;
		bottom: calc(78px + env(safe-area-inset-bottom));
		width: 40px;
		height: 40px;
	}

	/* Fixed Bottom Mobile School App Bar */
	.sxm-mobile-appbar {
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		align-items: center;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 980;
		background: rgba(255, 255, 255, 0.96);
		backdrop-filter: blur(14px);
		border-top: 1px solid var(--sxm-border);
		box-shadow: 0 -6px 24px rgba(11, 29, 58, 0.08);
		padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
	}
	.sxm-appbar-item {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		padding: 4px 2px;
		border: 0;
		background: transparent;
		color: var(--sxm-muted);
		font-family: inherit;
		font-size: 0.68rem;
		font-weight: 600;
		line-height: 1.1;
		cursor: pointer;
		text-decoration: none;
		border-radius: 10px;
		transition: color 0.18s ease, transform 0.15s ease, background-color 0.18s ease;
	}
	.sxm-appbar-item svg {
		width: 20px;
		height: 20px;
	}
	.sxm-appbar-item.is-active {
		color: var(--sxm-royal);
		font-weight: 700;
	}
	.sxm-appbar-item.is-active svg {
		color: var(--sxm-gold);
	}
	.sxm-appbar-item:active {
		transform: scale(0.93);
		background: var(--sxm-surface);
	}
}

@media (max-width: 680px) {
	:root {
		--sxm-section-space: 44px;
	}
	.sxm-container {
		width: calc(100% - 24px);
	}

	/* Clean Solid Mobile App Top Header (prevents transparent header overlapping hero faces) */
	body.sxm-transparent-header .sxm-site-header:not(.is-sticky) {
		position: relative;
		top: 0 !important;
	}
	body.sxm-transparent-header .sxm-site-header:not(.is-sticky) .sxm-main-header {
		background: var(--sxm-nav-bg);
		backdrop-filter: none;
		border-bottom-color: var(--sxm-border);
	}
	body.sxm-transparent-header .sxm-site-header:not(.is-sticky) .sxm-brand-name,
	body.sxm-transparent-header .sxm-site-header:not(.is-sticky) .sxm-icon-btn {
		color: var(--sxm-navy);
	}
	body.sxm-transparent-header .sxm-site-header:not(.is-sticky) .sxm-brand-tagline {
		color: var(--sxm-muted);
	}
	body.sxm-transparent-header .sxm-site-header:not(.is-sticky) .sxm-mobile-toggle {
		background: rgba(11, 29, 58, 0.07);
	}
	body.sxm-transparent-header .sxm-site-header:not(.is-sticky) .sxm-mobile-toggle span {
		background: var(--sxm-navy);
	}

	.sxm-header-inner {
		padding-block: 8px;
		gap: 10px;
	}
	.sxm-brand-logo img {
		height: 40px;
	}
	.sxm-brand-crest svg {
		width: 36px;
		height: 36px;
	}
	.sxm-brand-name {
		font-size: 0.92rem;
	}
	.sxm-brand-tagline {
		font-size: 0.67rem;
	}
	.sxm-header-actions {
		gap: 6px;
	}
	.sxm-icon-btn {
		padding: 6px;
		width: 36px;
		height: 36px;
	}
	.sxm-mobile-toggle {
		width: 38px;
		height: 38px;
		gap: 4px;
	}

	/* App-Sized Hero Banner on Phones */
	.sxm-hero-slider {
		height: 360px;
		min-height: 320px;
		max-height: 430px;
		border-radius: 0 0 22px 22px;
	}
	.sxm-hero-arrow {
		display: none;
	}
	.sxm-hero-slide.sxm-valign-bottom {
		padding-bottom: 34px;
	}
	.sxm-hero-slide.sxm-valign-top {
		padding-top: 18px;
	}
	.sxm-hero-content-wrap {
		padding-top: 8px;
	}
	.sxm-hero-content {
		width: 100%;
		max-width: 100%;
		padding: 14px 16px;
		border-radius: 14px;
	}
	.sxm-hero-kicker {
		font-size: 0.68rem;
		padding: 3px 10px;
		margin-bottom: 8px;
	}
	.sxm-hero-title {
		font-size: 1.32rem;
		line-height: 1.18;
		margin-bottom: 6px;
	}
	.sxm-hero-desc {
		font-size: 0.84rem;
		margin-bottom: 12px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.sxm-hero-actions {
		gap: 8px;
	}
	.sxm-hero-actions .sxm-btn {
		padding: 8px 14px;
		font-size: 0.8rem;
	}
	.sxm-hero-dots {
		bottom: 12px;
		gap: 7px;
	}
	.sxm-hero-dot {
		width: 8px;
		height: 8px;
	}
	.sxm-hero-dot.is-active {
		width: 22px;
	}

	/* 2-Column Mobile App Launcher Quick Access Tiles */
	.sxm-quick-access-section {
		margin-top: 14px;
		padding-bottom: 8px;
	}
	.sxm-quick-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.sxm-quick-card {
		position: relative;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding: 13px 12px;
		border-radius: 16px;
		border-top-width: 3px;
		box-shadow: 0 4px 14px rgba(11, 29, 58, 0.06);
	}
	.sxm-quick-icon {
		width: 38px;
		height: 38px;
		border-radius: 11px;
	}
	.sxm-quick-icon svg {
		width: 20px;
		height: 20px;
	}
	.sxm-quick-text strong {
		font-size: 0.85rem;
		line-height: 1.22;
	}
	.sxm-quick-text small {
		display: block;
		font-size: 0.7rem;
		line-height: 1.25;
		margin-top: 2px;
	}
	.sxm-quick-arrow {
		position: absolute;
		top: 12px;
		right: 12px;
		margin-left: 0;
		font-size: 0.9rem;
	}

	/* Section Typography & Compact Spacing */
	.sxm-section-header {
		margin-bottom: 24px;
	}
	.sxm-section-header-split {
		margin-bottom: 20px;
		gap: 12px;
	}
	.sxm-section-title {
		font-size: 1.48rem;
		margin-bottom: 8px;
	}
	.sxm-section-subtitle {
		font-size: 0.92rem;
	}

	/* 2-Column Compact School Stats Grid */
	.sxm-stats-section {
		padding-block: 36px;
	}
	.sxm-stats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.sxm-stat-card {
		padding: 14px 10px;
		border-radius: 14px;
	}
	.sxm-stat-value {
		font-size: 1.65rem;
	}
	.sxm-stat-label {
		font-size: 0.78rem;
		margin-top: 4px;
	}

	/* Horizontal Swipe App Rails for Academics & Achievements */
	.sxm-academics-grid,
	.sxm-achievements-grid {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 12px;
		padding-bottom: 8px;
		scrollbar-width: none;
	}
	.sxm-academics-grid::-webkit-scrollbar,
	.sxm-achievements-grid::-webkit-scrollbar {
		display: none;
	}
	.sxm-academic-card {
		flex: 0 0 78%;
		max-width: 285px;
		scroll-snap-align: start;
		border-radius: 16px;
	}
	.sxm-achievement-card {
		flex: 0 0 84%;
		max-width: 310px;
		scroll-snap-align: start;
		border-radius: 16px;
		padding: 18px;
	}

	/* 2-Column Photo Grid for Campus Facilities */
	.sxm-facilities-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.sxm-facility-card {
		min-height: 150px;
		border-radius: 14px;
	}
	.sxm-facility-overlay {
		margin: 8px;
		padding: 7px 10px;
		border-radius: 8px;
		max-width: calc(100% - 16px);
	}
	.sxm-facility-overlay h3 {
		font-size: 0.88rem;
		margin-bottom: 2px;
	}
	.sxm-facility-overlay span {
		display: block;
		font-size: 0.7rem;
		line-height: 1.2;
	}

	/* Scrollable Filter Chips & Compact Cards */
	.sxm-filter-pills {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		max-width: 100%;
		padding-bottom: 4px;
		scrollbar-width: none;
	}
	.sxm-filter-pills::-webkit-scrollbar {
		display: none;
	}
	.sxm-filter-btn {
		flex-shrink: 0;
		font-size: 0.8rem;
		padding: 6px 14px;
	}

	/* 2-Column Gallery Mosaic & Compact News */
	.sxm-masonry-grid {
		columns: 2 140px;
		column-gap: 10px;
		margin-top: 14px;
	}
	.sxm-gallery-album-card {
		margin-bottom: 10px;
		border-radius: 12px;
	}
	.sxm-gallery-album-info {
		padding: 10px 12px;
	}
	.sxm-gallery-album-info h3 {
		font-size: 0.92rem;
	}
	.sxm-photo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.sxm-news-grid,
	.sxm-welcome-highlights,
	.sxm-footer-cols-4,
	.sxm-footer-cols-3,
	.sxm-footer-cols-2 {
		grid-template-columns: 1fr;
	}
	.sxm-footer-main {
		padding-block: 40px 28px;
	}
	.sxm-admission-cta-section {
		padding-block: 48px;
	}

	.sxm-cbse-nav-pills {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		scrollbar-width: none;
	}
	.sxm-cbse-nav-pills .sxm-filter-btn {
		flex-shrink: 0;
	}
	.sxm-cbse-table thead {
		display: none;
	}
	.sxm-cbse-table,
	.sxm-cbse-table tbody,
	.sxm-cbse-table tr,
	.sxm-cbse-table td {
		display: block;
		width: 100%;
	}
	.sxm-cbse-table tr {
		border-bottom: 2px solid var(--sxm-border);
		padding: 10px 0;
	}
	.sxm-cbse-table td {
		border-bottom: 0;
		padding: 6px 16px;
	}
	.sxm-cbse-table td::before {
		content: attr(data-label) ': ';
		font-weight: 700;
		color: var(--sxm-navy);
	}

	/* Unfloat magazine wrapped images cleanly on narrow phones */
	.entry-content .alignleft,
	.entry-content img.alignleft,
	.entry-content figure.alignleft,
	.entry-content .wp-caption.alignleft,
	.entry-content .wp-block-image.alignleft,
	.entry-content .alignright,
	.entry-content img.alignright,
	.entry-content figure.alignright,
	.entry-content .wp-caption.alignright,
	.entry-content .wp-block-image.alignright,
	.entry-content .sxm-mag-float-left {
		float: none;
		max-width: 100%;
		margin: 14px auto 20px;
	}
	.sxm-flip-stage {
		padding: 16px 8px;
	}
	.sxm-flip-nav {
		display: none;
	}
}
