/*
Theme Name: Astra Child — Govt Scheme Finder
Theme URI:
Description: Child theme for Govt Scheme Finder
Author: Nilesh Khodke
Author URI:
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* ===========================
   CSS CUSTOM PROPERTIES
   =========================== */
:root {
	--gsf-primary: #1A56DB;
	--gsf-primary-dark: #1447B8;
	--gsf-primary-light: #EBF2FF;
	--gsf-secondary: #F97316;
	--gsf-secondary-dark: #EA6100;
	--gsf-bg: #FFFFFF;
	--gsf-text: #1F2937;
	--gsf-text-light: #6B7280;
	--gsf-success: #16A34A;
	--gsf-success-light: #DCFCE7;
	--gsf-danger: #DC2626;
	--gsf-danger-light: #FEE2E2;
	--gsf-warning: #D97706;
	--gsf-warning-light: #FEF3C7;
	--gsf-card-bg: #F9FAFB;
	--gsf-border: #E5E7EB;
	--gsf-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
	--gsf-shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
	--gsf-radius: 8px;
	--gsf-radius-lg: 12px;
}

/* ===========================
   HOME PAGE LAYOUT FIX
   Astra header.php opens #content > .ast-container
   which constrains our full-width sections.
   =========================== */

/* Remove all Astra constraints for home page */
.page-template-page-home #content.site-content {
	padding: 0 !important;
}

.page-template-page-home #content > .ast-container {
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
	display: block !important;
	float: none !important;
	clear: both !important;
}

/* Force every home section to be full-width block */
.gsf-hero,
.gsf-stats-section,
.gsf-section-home {
	display: block !important;
	width: 100% !important;
	float: none !important;
	clear: both !important;
	box-sizing: border-box !important;
}

/* Remove Astra's default article padding on home page */
.page-template-page-home .ast-article-single,
.page-template-page-home .entry-content,
.page-template-page-home .post-0,
.page-template-page-home #primary {
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
}

/* Hide Astra page title on home page */
.page-template-page-home .entry-header,
.page-template-page-home .ast-breadcrumbs-wrapper {
	display: none !important;
}

/* ===========================
   BASE TYPOGRAPHY
   =========================== */
body {
	font-family: 'Inter', 'Noto Sans', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--gsf-text);
	background-color: var(--gsf-bg);
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Inter', 'Noto Sans', sans-serif;
	font-weight: 700;
	line-height: 1.3;
	color: var(--gsf-text);
}

a {
	color: var(--gsf-primary);
	text-decoration: none;
}

a:hover {
	color: var(--gsf-primary-dark);
	text-decoration: underline;
}

/* ===========================
   HOME PAGE SECTION STYLES
   (inline here so they load even before plugin CSS)
   =========================== */

.gsf-hero {
	display: block;
	width: 100%;
	padding: 48px 0 40px;
	background: linear-gradient(135deg, #EBF2FF 0%, #FFF7ED 100%);
	box-sizing: border-box;
}

.gsf-hero-inner {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 16px;
	text-align: center;
}

.gsf-hero-title {
	font-size: 28px;
	font-weight: 800;
	margin-bottom: 12px;
	color: #1F2937;
	line-height: 1.2;
}

.gsf-hero-sub {
	font-size: 16px;
	color: #4B5563;
	margin-bottom: 32px;
}

.gsf-stats-section {
	display: block;
	width: 100%;
	background: #fff;
	box-sizing: border-box;
}

.gsf-stats-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	justify-content: center;
	padding: 28px 16px;
	align-items: center;
}

.gsf-stat-item {
	text-align: center;
}

.gsf-stat-number {
	font-size: 36px;
	font-weight: 800;
	color: #1A56DB;
	display: block;
	line-height: 1;
}

.gsf-stat-label {
	font-size: 13px;
	color: #6B7280;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-top: 4px;
	display: block;
}

.gsf-section-home {
	display: block;
	width: 100%;
	padding: 40px 0;
	box-sizing: border-box;
}

.gsf-section-home:nth-child(even) {
	background: #F9FAFB;
}

.gsf-section-home h2 {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 8px;
}

.gsf-section-subhead {
	color: #6B7280;
	margin-bottom: 24px;
	font-size: 15px;
}

.gsf-how-steps {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.gsf-how-step {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.gsf-how-step-num {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #1A56DB;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 18px;
	flex-shrink: 0;
}

.gsf-how-step-text h3 {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 4px;
}

.gsf-how-step-text p {
	font-size: 14px;
	color: #6B7280;
	margin: 0;
}

.gsf-post-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.gsf-post-item {
	padding: 16px;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 8px;
}

.gsf-post-item h3 {
	font-size: 16px;
	margin: 0 0 4px;
}

.gsf-post-item h3 a {
	color: #1F2937;
	text-decoration: none;
}

.gsf-post-item h3 a:hover {
	color: #1A56DB;
}

.gsf-post-date {
	font-size: 12px;
	color: #9CA3AF;
	margin: 0 0 8px;
}

.gsf-post-item p {
	font-size: 14px;
	color: #6B7280;
	margin: 0;
}

/* Category grid on home */
.gsf-cat-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.gsf-cat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 16px 12px;
	border: 2px solid #E5E7EB;
	border-radius: 8px;
	text-decoration: none;
	text-align: center;
	transition: all 0.2s;
	background: #fff;
}

.gsf-cat-item:hover {
	background: #EBF2FF;
	text-decoration: none;
}

.gsf-cat-icon {
	font-size: 28px;
	margin-bottom: 6px;
	display: block;
}

.gsf-cat-name {
	font-size: 13px;
	font-weight: 600;
	color: #1F2937;
	display: block;
}

.gsf-cat-count {
	font-size: 12px;
	color: #9CA3AF;
	margin-top: 3px;
	display: block;
}

/* States list on home */
.gsf-states-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gsf-state-pill {
	padding: 7px 14px;
	background: #F3F4F6;
	border-radius: 20px;
	font-size: 13px;
	text-decoration: none;
	color: #374151;
	transition: background 0.15s;
}

.gsf-state-pill:hover {
	background: #EBF2FF;
	color: #1A56DB;
	text-decoration: none;
}

.gsf-state-pill span {
	color: #9CA3AF;
	font-size: 11px;
	margin-left: 4px;
}

/* Responsive home */
@media (min-width: 480px) {
	.gsf-hero-title { font-size: 32px; }
	.gsf-cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
	.gsf-hero-title { font-size: 38px; }
	.gsf-cat-grid { grid-template-columns: repeat(4, 1fr); }
	.gsf-stats-bar { gap: 56px; }
	.gsf-how-steps { flex-direction: row; }
	.gsf-post-list { flex-direction: row; gap: 16px; }
	.gsf-post-list .gsf-post-item { flex: 1; }
}

@media (min-width: 1024px) {
	.gsf-hero-title { font-size: 44px; }
	.gsf-cat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===========================
   ASTRA OVERRIDES
   =========================== */
.ast-container {
	max-width: 1200px;
}

/* Header */
.site-header,
.ast-primary-header-bar {
	background-color: var(--gsf-bg);
	border-bottom: 1px solid var(--gsf-border);
}

.ast-site-header-wrap .ast-header-logo-group .ast-logo-title-inline .ast-site-identity {
	font-weight: 700;
}

/* Navigation */
.main-navigation a,
.ast-header-navigation a {
	color: var(--gsf-text);
	font-weight: 500;
}

.main-navigation a:hover,
.ast-header-navigation a:hover {
	color: var(--gsf-primary);
}

/* Buttons */
.ast-button,
.button,
input[type="submit"] {
	background-color: var(--gsf-primary);
	color: #fff;
	border-radius: var(--gsf-radius);
	padding: 10px 20px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ast-button:hover,
.button:hover,
input[type="submit"]:hover {
	background-color: var(--gsf-primary-dark);
	color: #fff;
}

/* ===========================
   FOOTER
   =========================== */
.gsf-footer {
	background-color: #111827;
	color: #D1D5DB;
	padding: 48px 0 0;
}

.gsf-footer a {
	color: #D1D5DB;
}

.gsf-footer a:hover {
	color: #fff;
	text-decoration: none;
}

.gsf-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 32px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

.gsf-footer-col h4 {
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 16px;
}

.gsf-footer-col p {
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 16px;
}

.gsf-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gsf-footer-links li {
	margin-bottom: 8px;
}

.gsf-footer-links a {
	font-size: 14px;
}

.gsf-footer-social {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.gsf-footer-social-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: var(--gsf-radius);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.2s;
}

.gsf-footer-social-btn:hover {
	opacity: 0.85;
	text-decoration: none;
}

.gsf-footer-social-btn.whatsapp {
	background-color: #25D366;
	color: #fff;
}

.gsf-footer-social-btn.telegram {
	background-color: #2AABEE;
	color: #fff;
}

.gsf-footer-bottom {
	margin-top: 40px;
	border-top: 1px solid #374151;
	padding: 16px;
	text-align: center;
	font-size: 13px;
	color: #9CA3AF;
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.gsf-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

.gsf-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.gsf-badge-primary {
	background-color: var(--gsf-primary-light);
	color: var(--gsf-primary);
}

.gsf-badge-secondary {
	background-color: #FFF7ED;
	color: var(--gsf-secondary);
}

.gsf-badge-success {
	background-color: var(--gsf-success-light);
	color: var(--gsf-success);
}

.gsf-badge-danger {
	background-color: var(--gsf-danger-light);
	color: var(--gsf-danger);
}

.gsf-badge-warning {
	background-color: var(--gsf-warning-light);
	color: var(--gsf-warning);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (min-width: 480px) {
	.gsf-footer-social {
		flex-wrap: nowrap;
	}
}

@media (min-width: 768px) {
	.gsf-footer-grid {
		grid-template-columns: repeat(2, 1fr);
		padding: 0 24px;
	}
}

@media (min-width: 1024px) {
	.gsf-footer-grid {
		grid-template-columns: repeat(3, 1fr);
		padding: 0 32px;
	}

	.gsf-container {
		padding: 0 32px;
	}
}
