/*
 Theme Name:   Kadence Child – Results Check
 Theme URI:    https://resultscheck.com/
 Description:  Kadence Child Theme for Results Check .com — custom homepage with Sarkari Result, Admit Card, Yojana, and Sarkari Job listings.
 Author:       Results Check
 Author URI:   https://resultscheck.com/
 Template:     kadence
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  kadence-child
*/

/* ================================================================
   GLOBAL RESETS & KADENCE OVERRIDES FOR HOMEPAGE
   ================================================================ */

/* Hide default Kadence / WordPress page title area on front-page */
body.home .page-title,
body.home .entry-title,
body.home .entry-header,
body.home .page-header,
body.home .ast-page-title-wrap,
body.home .site-content .page-title-wrap,
body.home h1.page-title,
body.home h1.entry-title {
	display: none !important;
}

/* Remove default content padding that leaves a blank gap above our custom header */
body.home .entry-content,
body.home .content-area,
body.home .site-main,
body.home main#content,
body.home #content,
body.home .site-content {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* Hide Kadence's default entry content wrapper padding on homepage */
body.home .wp-site-blocks,
body.home .entry-content > *:not(#rc-home) {
	padding: 0 !important;
	margin: 0 !important;
}

/* ================================================================
   RC-HOME COMPONENT STYLES
   ================================================================ */

#rc-home {
	--navy: #0B2545;
	--navy-deep: #071A33;
	--saffron: #F77F1A;
	--saffron-deep: #E36A05;
	--green: #0F8A44;
	--gold: #D8A31A;
	--paper: #F6F5F1;
	--card: #FFFFFF;
	--ink: #16263D;
	--ink-soft: #5B6B82;
	--line: #E4E3DC;
	--radius: 10px;

	font-family: 'Hind', sans-serif;
	background: var(--paper);
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	max-width: 100%;
	overflow-x: hidden;
}

#rc-home * {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

#rc-home h1,
#rc-home h2,
#rc-home h3,
#rc-home .rc-brand,
#rc-home .rc-navtab,
#rc-home .rc-btn {
	font-family: 'Baloo 2', sans-serif;
}

#rc-home .rc-mono {
	font-family: 'Roboto Mono', monospace;
}

#rc-home a {
	color: inherit;
	text-decoration: none;
}

#rc-home img {
	max-width: 100%;
}

#rc-home ::selection {
	background: var(--saffron);
	color: #241100;
}

/* ---------- Tricolor strip ---------- */
#rc-home .rc-tricolor {
	height: 5px;
	width: 100%;
	display: flex;
}

#rc-home .rc-tricolor span {
	flex: 1;
}

#rc-home .rc-tricolor .rc-saf {
	background: #FF9933;
}

#rc-home .rc-tricolor .rc-whi {
	background: #ffffff;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
}

#rc-home .rc-tricolor .rc-grn {
	background: #128807;
}

/* ---------- Topbar ---------- */
#rc-home .rc-topbar {
	background: var(--navy-deep);
	color: #cdd8ea;
	font-size: 12.5px;
}

#rc-home .rc-topbar-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 6px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

#rc-home .rc-topbar-inner .rc-date {
	letter-spacing: 0.3px;
}

#rc-home .rc-topbar-links {
	display: flex;
	gap: 14px;
}

#rc-home .rc-topbar-links a {
	opacity: 0.85;
}

#rc-home .rc-topbar-links a:hover {
	opacity: 1;
	text-decoration: underline;
}

/* ---------- Header ---------- */
#rc-home .rc-header {
	background: linear-gradient(135deg, var(--navy) 0%, #123362 60%, var(--navy) 100%);
	position: relative;
	overflow: hidden;
}

#rc-home .rc-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.06) 0, transparent 40%),
		radial-gradient(circle at 85% 80%, rgba(247, 127, 26, 0.15) 0, transparent 45%);
	pointer-events: none;
}

#rc-home .rc-header-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 20px 16px 26px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	position: relative;
	flex-wrap: wrap;
}

#rc-home .rc-brand-block {
	display: flex;
	align-items: center;
	gap: 14px;
}

#rc-home .rc-brand-emblem {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #ffcf8f, var(--saffron) 55%, var(--saffron-deep));
	display: flex;
	align-items: center;
	justify-content: center;
	color: #3a1c00;
	font-weight: 800;
	font-size: 22px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 0 0 3px rgba(255, 255, 255, 0.35);
	flex-shrink: 0;
}

#rc-home .rc-brand h1 {
	color: #fff;
	font-size: 26px;
	letter-spacing: 0.3px;
	font-weight: 800;
}

#rc-home .rc-brand p {
	color: #b9c8e0;
	font-size: 13px;
	margin-top: 2px;
	letter-spacing: 0.2px;
}

#rc-home .rc-header-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

#rc-home .rc-btn {
	padding: 9px 16px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	cursor: pointer;
	transition: 0.15s ease;
	background: transparent;
	display: inline-flex;
	align-items: center;
}

#rc-home .rc-btn:hover {
	background: rgba(255, 255, 255, 0.12);
}

#rc-home .rc-btn.rc-solid {
	background: var(--saffron);
	border-color: var(--saffron);
	color: #251200;
}

#rc-home .rc-btn.rc-solid:hover {
	background: var(--saffron-deep);
}

/* ---------- Marquee ticker ---------- */
#rc-home .rc-ticker {
	background: var(--navy-deep);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 3px solid var(--saffron);
}

#rc-home .rc-ticker-inner {
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	align-items: stretch;
}

#rc-home .rc-ticker-label {
	background: var(--saffron);
	color: #2a1400;
	font-weight: 800;
	font-size: 13px;
	padding: 9px 16px;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	flex-shrink: 0;
	clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
	padding-right: 26px;
}

#rc-home .rc-ticker-track {
	overflow: hidden;
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
}

#rc-home .rc-ticker-move {
	display: inline-flex;
	white-space: nowrap;
	gap: 48px;
	padding-left: 24px;
	animation: rc-scroll-left 26s linear infinite;
	color: #e7edf7;
	font-size: 14px;
	font-weight: 500;
}

#rc-home .rc-ticker-move:hover {
	animation-play-state: paused;
}

#rc-home .rc-ticker-move span {
	color: var(--gold);
	font-weight: 700;
	margin-right: 6px;
}

@keyframes rc-scroll-left {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* ---------- Category nav ---------- */
#rc-home .rc-catnav {
	background: #fff;
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 20;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

#rc-home .rc-catnav-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	gap: 4px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

#rc-home .rc-catnav-inner::-webkit-scrollbar {
	display: none;
}

#rc-home .rc-navtab {
	padding: 14px 18px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink-soft);
	border-bottom: 3px solid transparent;
	white-space: nowrap;
	cursor: pointer;
	transition: 0.15s;
	text-decoration: none;
	display: inline-block;
}

#rc-home .rc-navtab:hover {
	color: var(--navy);
}

#rc-home .rc-navtab.rc-active {
	color: var(--saffron-deep);
	border-bottom-color: var(--saffron);
}

/* ---------- Main layout ---------- */
#rc-home .rc-main {
	max-width: 1180px;
	margin: 0 auto;
	padding: 26px 16px 60px;
}

#rc-home .rc-section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 30px 0 14px;
}

#rc-home .rc-section-title:first-child {
	margin-top: 0;
}

#rc-home .rc-section-title .rc-bar {
	width: 5px;
	height: 20px;
	background: var(--saffron);
	border-radius: 3px;
	flex-shrink: 0;
}

#rc-home .rc-section-title h2 {
	font-size: 19px;
	color: var(--navy);
}

#rc-home .rc-section-title .rc-count {
	margin-left: auto;
	font-size: 12.5px;
	color: var(--ink-soft);
	font-weight: 500;
}

/* ---------- Post grid ---------- */
#rc-home .rc-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

@media (max-width: 900px) {
	#rc-home .rc-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 620px) {
	#rc-home .rc-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Post card ---------- */
#rc-home .rc-post {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: 0.15s ease;
	position: relative;
}

#rc-home .rc-post:hover {
	border-color: var(--saffron);
	box-shadow: 0 6px 16px rgba(11, 37, 69, 0.08);
	transform: translateY(-2px);
}

#rc-home .rc-post-top {
	display: flex;
	align-items: center;
	gap: 8px;
}

#rc-home .rc-tag {
	font-size: 10.5px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 5px;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

#rc-home .rc-tag.rc-result {
	background: #E9F5EC;
	color: var(--green);
}

#rc-home .rc-tag.rc-admit {
	background: #FDEFE0;
	color: var(--saffron-deep);
}

#rc-home .rc-tag.rc-yojana {
	background: #EDE9FB;
	color: #5B3FBE;
}

#rc-home .rc-tag.rc-job {
	background: #E7EEFB;
	color: #2456C9;
}

#rc-home .rc-tag.rc-other {
	background: #F0F0F0;
	color: #555;
}

/* NEW badge with pulsing animation */
#rc-home .rc-badge-new {
	font-size: 10px;
	font-weight: 800;
	color: #fff;
	background: #D62828;
	padding: 2px 7px;
	border-radius: 4px;
	letter-spacing: 0.4px;
	animation: rc-pulse 1.6s infinite;
}

@keyframes rc-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.55; }
}

#rc-home .rc-post h3 {
	font-size: 15.5px;
	line-height: 1.4;
	color: var(--ink);
	font-weight: 600;
}

#rc-home .rc-post:hover h3 {
	color: var(--saffron-deep);
}

#rc-home .rc-post-meta {
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: var(--ink-soft);
	padding-top: 6px;
	border-top: 1px dashed var(--line);
}

#rc-home .rc-post-meta .rc-date {
	font-weight: 600;
}

#rc-home .rc-post-meta .rc-arrow {
	color: var(--saffron-deep);
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

/* ---------- Top-pick (featured) card ---------- */
#rc-home .rc-post.rc-top-pick {
	grid-column: span 3;
	background: linear-gradient(120deg, #0B2545 0%, #16345F 100%);
	border: none;
	color: #fff;
	flex-direction: row;
	align-items: center;
	gap: 20px;
	padding: 20px 24px;
}

@media (max-width: 900px) {
	#rc-home .rc-post.rc-top-pick {
		grid-column: span 2;
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 620px) {
	#rc-home .rc-post.rc-top-pick {
		grid-column: span 1;
	}
}

#rc-home .rc-top-pick .rc-num {
	font-family: 'Roboto Mono', monospace;
	font-size: 34px;
	font-weight: 700;
	color: var(--saffron);
	opacity: 0.85;
	flex-shrink: 0;
}

#rc-home .rc-top-pick h3 {
	color: #fff;
	font-size: 18px;
}

#rc-home .rc-top-pick .rc-post-meta {
	border-top-color: rgba(255, 255, 255, 0.2);
	color: #c6d3e8;
}

#rc-home .rc-top-pick:hover h3 {
	color: #fff;
}

#rc-home .rc-top-pick:hover {
	transform: none;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

/* ---------- Pagination ---------- */
#rc-home .rc-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	flex-wrap: wrap;
}

#rc-home .rc-page-info {
	font-size: 13px;
	color: var(--ink-soft);
	font-weight: 500;
}

#rc-home .rc-page-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 22px;
	border-radius: 999px;
	font-family: 'Baloo 2', sans-serif;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: 0.15s ease;
	border: 2px solid var(--navy);
	color: var(--navy);
	background: #fff;
}

#rc-home .rc-page-btn:hover:not(:disabled) {
	background: var(--navy);
	color: #fff;
}

#rc-home .rc-page-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

#rc-home .rc-page-btn.rc-next-btn {
	background: var(--saffron);
	border-color: var(--saffron);
	color: #251200;
}

#rc-home .rc-page-btn.rc-next-btn:hover:not(:disabled) {
	background: var(--saffron-deep);
	border-color: var(--saffron-deep);
	color: #251200;
}

#rc-home .rc-page-btn.rc-loading {
	opacity: 0.7;
	pointer-events: none;
}

/* Spinner inside Next button */
#rc-home .rc-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(37, 18, 0, 0.3);
	border-top-color: #251200;
	border-radius: 50%;
	animation: rc-spin 0.7s linear infinite;
}

@keyframes rc-spin {
	to { transform: rotate(360deg); }
}

/* ---------- Loading skeleton ---------- */
#rc-home .rc-skeleton {
	background: linear-gradient(90deg, #e8e8e0 25%, #f0efe8 50%, #e8e8e0 75%);
	background-size: 200% 100%;
	animation: rc-shimmer 1.4s infinite;
	border-radius: var(--radius);
	height: 120px;
}

@keyframes rc-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* ---------- Footer ---------- */
#rc-home .rc-footer {
	background: var(--navy-deep);
	color: #9fb0cb;
	padding: 26px 16px;
	text-align: center;
	font-size: 13px;
}

#rc-home .rc-footer b {
	color: #fff;
}

#rc-home .rc-footer a {
	color: #cddaf0;
	text-decoration: none;
	font-weight: 600;
}

#rc-home .rc-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 480px) {
	#rc-home .rc-brand h1 {
		font-size: 20px;
	}

	#rc-home .rc-topbar-links {
		gap: 8px;
		font-size: 11px;
	}

	#rc-home .rc-header-actions {
		gap: 6px;
	}

	#rc-home .rc-btn {
		padding: 7px 12px;
		font-size: 13px;
	}
}
