/*
 * Guruji Student Corner Style v1.1.0
 * The rules are restricted to WooCommerce My Account elements.
 */

body.guruji-student-corner-styled {
	--gsp-yellow: #f4bd3f;
	--gsp-yellow-deep: #d89a00;
	--gsp-pale-yellow: #fff8df;
	--gsp-cream: #fffdf6;
	--gsp-navy: #142440;
	--gsp-text: #20242c;
	--gsp-muted: #646a73;
	--gsp-border: #eadca9;
}

/* Account layout. Important flags defeat the theme's WooCommerce floats. */
body.guruji-student-corner-styled .woocommerce.gsp-account-shell {
	display: grid !important;
	grid-template-columns: minmax(210px, 238px) minmax(0, 1fr) !important;
	gap: 24px !important;
	align-items: start !important;
}

body.guruji-student-corner-styled .woocommerce.gsp-account-shell::before,
body.guruji-student-corner-styled .woocommerce.gsp-account-shell::after {
	display: none !important;
	content: none !important;
}

/* LEFT MENU */
body.guruji-student-corner-styled .woocommerce-MyAccount-navigation {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 14px !important;
	background: linear-gradient(180deg, #fffef9 0%, #fff8df 100%) !important;
	border: 1px solid var(--gsp-border) !important;
	border-radius: 16px !important;
	box-sizing: border-box !important;
	box-shadow: 0 10px 26px rgba(20, 36, 64, 0.08) !important;
	overflow: hidden !important;
}

body.guruji-student-corner-styled .woocommerce-MyAccount-navigation::before {
	content: "STUDENT MENU" !important;
	display: block !important;
	margin: 0 0 11px !important;
	padding: 2px 4px 12px !important;
	border-bottom: 1px solid rgba(216, 154, 0, 0.24) !important;
	color: var(--gsp-navy) !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	letter-spacing: 0.11em !important;
	line-height: 1.2 !important;
}

body.guruji-student-corner-styled .woocommerce-MyAccount-navigation ul {
	display: grid !important;
	gap: 7px !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.guruji-student-corner-styled .woocommerce-MyAccount-navigation li {
	border: 0 !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.guruji-student-corner-styled .woocommerce-MyAccount-navigation li a {
	display: flex !important;
	align-items: center !important;
	min-height: 43px !important;
	padding: 10px 12px !important;
	border: 1px solid transparent !important;
	border-radius: 10px !important;
	box-sizing: border-box !important;
	color: var(--gsp-text) !important;
	font-size: 14px !important;
	font-weight: 650 !important;
	line-height: 1.25 !important;
	text-decoration: none !important;
	transition: background-color .18s ease, border-color .18s ease, transform .18s ease !important;
}

body.guruji-student-corner-styled .woocommerce-MyAccount-navigation li a:hover,
body.guruji-student-corner-styled .woocommerce-MyAccount-navigation li a:focus-visible {
	background: #fff1b5 !important;
	border-color: #edd076 !important;
	transform: translateX(2px) !important;
}

body.guruji-student-corner-styled .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--gsp-yellow) !important;
	border-color: #d9a11a !important;
	box-shadow: 0 5px 14px rgba(216, 154, 0, 0.20) !important;
	color: #171717 !important;
}

body.guruji-student-corner-styled .woocommerce-MyAccount-navigation-link--customer-logout a {
	color: #9a3428 !important;
}

/* RIGHT CONTENT */
body.guruji-student-corner-styled .woocommerce-MyAccount-content {
	float: none !important;
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

/* HELLO / WELCOME */
body.guruji-student-corner-styled .woocommerce-MyAccount-content > p.gsp-welcome-line {
	position: relative !important;
	margin: 0 0 12px !important;
	padding: 18px 20px 18px 66px !important;
	background: linear-gradient(135deg, #fff2b9 0%, #fffdf6 74%) !important;
	border: 1px solid var(--gsp-border) !important;
	border-radius: 16px !important;
	box-shadow: 0 8px 22px rgba(20, 36, 64, 0.07) !important;
	color: var(--gsp-text) !important;
	font-size: 15px !important;
	line-height: 1.55 !important;
}

body.guruji-student-corner-styled .woocommerce-MyAccount-content > p.gsp-welcome-line::before {
	content: "👋" !important;
	position: absolute !important;
	left: 18px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	display: grid !important;
	place-items: center !important;
	width: 34px !important;
	height: 34px !important;
	background: var(--gsp-yellow) !important;
	border-radius: 50% !important;
	box-shadow: 0 5px 12px rgba(216, 154, 0, 0.22) !important;
	font-size: 18px !important;
}

body.guruji-student-corner-styled .woocommerce-MyAccount-content > p.gsp-welcome-line strong {
	color: var(--gsp-navy) !important;
	font-size: 17px !important;
	font-weight: 800 !important;
}

body.guruji-student-corner-styled .woocommerce-MyAccount-content > p.gsp-welcome-line a {
	color: #795400 !important;
	font-weight: 700 !important;
	text-underline-offset: 3px !important;
}

body.guruji-student-corner-styled .woocommerce-MyAccount-content > p.gsp-dashboard-intro {
	margin: 0 0 18px !important;
	padding: 14px 16px !important;
	background: #fff !important;
	border: 1px solid #ece7d6 !important;
	border-left: 4px solid var(--gsp-yellow) !important;
	border-radius: 10px !important;
	color: var(--gsp-muted) !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
}

body.guruji-student-corner-styled .woocommerce-MyAccount-content > p.gsp-dashboard-intro a {
	color: #5f4700 !important;
	font-weight: 650 !important;
	text-underline-offset: 3px !important;
}

/* Mobile/tablet: menu becomes compact buttons above the dashboard. */
@media (max-width: 900px) {
	body.guruji-student-corner-styled .woocommerce.gsp-account-shell {
		display: block !important;
	}

	body.guruji-student-corner-styled .woocommerce-MyAccount-navigation {
		margin: 0 0 18px !important;
		padding: 12px !important;
		border-radius: 14px !important;
	}

	body.guruji-student-corner-styled .woocommerce-MyAccount-navigation ul {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 8px !important;
	}

	body.guruji-student-corner-styled .woocommerce-MyAccount-navigation li a {
		justify-content: center !important;
		min-height: 42px !important;
		padding: 9px 7px !important;
		text-align: center !important;
		font-size: 13px !important;
	}

	body.guruji-student-corner-styled .woocommerce-MyAccount-navigation li a:hover,
	body.guruji-student-corner-styled .woocommerce-MyAccount-navigation li a:focus-visible {
		transform: none !important;
	}

	body.guruji-student-corner-styled .woocommerce-MyAccount-content > p.gsp-welcome-line {
		padding: 17px 14px 17px 57px !important;
		border-radius: 14px !important;
		font-size: 14px !important;
	}

	body.guruji-student-corner-styled .woocommerce-MyAccount-content > p.gsp-welcome-line::before {
		left: 14px !important;
		width: 32px !important;
		height: 32px !important;
	}
}

@media (max-width: 430px) {
	body.guruji-student-corner-styled .woocommerce-MyAccount-navigation ul {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	body.guruji-student-corner-styled .woocommerce-MyAccount-navigation li a {
		font-size: 12px !important;
	}
}
